According to Aztec cosmology, the sun god Huitzilopochtli was waging a constant war against darkness, and if the darkness won, the world would end. The keep the sun moving across the sky and preserve their very lives, the Aztecs had to feed Huitzilopochtli with human hearts and blood.