What is the nature of the force causing S.H.M.?

A restoring force which is directly proportional to the displacement of a particle from its position and aims towards the centre (mean position) cause S.H.M