Algor mortis is the cooling process of the body after death. It begins immediately after the heart stops beating, and the body loses its ability to regulate temperature.