What forces keep the simple pendulum in S.H.M.?

The component of weight due to gravitational - force , keeps the simple pendulum in S.H.M.