In Maya mythology, Ixbalanque was originally a son of Hun Hunahpu and a virgin. His twin was Hun-Apu. The two were the Maya Hero Twins. Their father Hun Hunahpu was beheaded by two underworld demons, Vucub Caquix and Hun Came.

Hun-Apu and Ixbalanque decided to kill their father's murderers, as well as Zipacna, son of Vucub Caquix. They made a crab decoy and told Zipacna where he could find a giant crab to eat. When Zipacna went to the spot, they threw a mountain on him, killing him.

Hun-Apu became a sun god and Ixbalanque, became a moon goddess, switching genders.