When we hit the nail, the particulate objects are set into kinetic energy and they begin to move. However, due to the rigid structure, the particulate objects cannot move from their equilibrium position, and therefore, it is dissipated through heat.
The kinetic energy is transferred to thermal energy through friction
When you strike a nail with a hammer, the kinetic energy from the hammer is transferred to the nail, causing deformation and friction. This energy conversion results in an increase in thermal energy, warming the nail. The process is an example of the first law of thermodynamics, where energy is transformed rather than destroyed.
;