What type of forces are required for the formation of solids?

Interatomic forces of repulsive nature are required to form a solid.