Magec, in Tenerife, was a deity in the ancient Berber mythology. Magec was god or goddess of the Sun and light and is thought to be one of the principal divinities in the Guanche religion. According to legend, Magec was captured by Guayota and held prisoner inside Teide before later being liberated by Achamán.