Why are solids rigid?

In solids, constituent particles are closely packed and hence, possesses very strong attractive forces among them. Due to this, particles have fixed positions and they can oscillate only about their mean positions. That’s why solids are rigid.