In Maya mythology, Gukumatz ("feathered serpent") was a snake god, one of all three groups of gods who created Earth and humanity. He taught mankind civilization and agriculture. Gukumatz was the name for the deity in the highlands of what is now Guatemala; in Yucatán he was known as "Kukulcan". All these names mean specifically "Quetzal feathered serpent".
He was the Maya equivalent of the central-Mexican Quetzalcoatl (see that article for a longer discussion of this MesoamericanDeity).
He was a god of the four elements of fire, earth, air and water, as well as a culture hero who taught the Toltecs (his original followers) the arts of civilization, including codes of law, agriculture, fishing and medicine. He came from an ocean, and eventually returned to it.
He had four divine organisms, each associated with a specific element:
In the beginning of time there was no Earth, no Sun and no Moon.
There only existed Heaven, the house of Gucumatz, the father and mother of all the creatures, and Hell, the house of the Ahauab de Xibalba, the Lords of Hell.
Gucumatz, Hearth of the Heaven, rewarded Hunahpu and Ixbalanque by making them the Sun and the Moon.