In Aztec mythology, the god Nanauatzin sacrificed himself so that the sun would continue to shine on Earth.