Split gravity along the string and along the arc. The string cancels the first part; the second, mgsinθ, pulls the bob back toward the bottom. Along the arc the displacement is s=Lθ, so
F=−mgsinθ≈−mgθ=−Lmgs For small θ this has the form F=−ks with k=mg/L: the pendulum moves like a mass on a spring.