What is the main reason behind solid's definite shape?
Strong intermolecular force of attraction, and molecules of solid cannot interchange their positions.
The intermolecular force of attraction in solids is very strong because of the small intermolecular spaces. This is the main reason solids cannot be compressed easily. The molecules in a particular solid cannot interchange their positions, and hence, solids have a definite shape and definite volume.