As the god of beginnings, he is honoredÂ at the start of rites and ceremonies. Ganesha is also invoked as patron of letters and learning during writing sessions. SeveralÂ texts relate mythological anecdotes associated with his birth and exploits and explain his distinct iconography. GaneshÂ emerged as a distinct deity in the 4th and 5th centuries AD, during the Gupta period, although he inherited traits from Vedic and pre-Vedic precursors. Hindu mythology identifies him as the restored son of Parvati and Shiva of the Shaivism tradition, but he is a pan-Hindu god found in its various traditions.