Rigor mortis sets in after a few hours and lasts for up to 72 hours. The exact time frame varies depending on the temperature and humidity of the environment.