After death, the body's supply of adenosine triphosphate (ATP) is depleted. ATP provides energy for muscle contractions and relaxation. Without it, muscles cannot relax and become fixed in their position at death. This stiffening is rigor mortis.
Rigor mortis typically begins within a few hours of death, peaks within 12 to 24 hours, and gradually subsides over several days. Timing depends on species, age, and environmental conditions. It plays a role in decomposition by helping break down muscle tissue.