Given that legends related to Murugan are recounted separately in several Hindu epics, some differences between the various versions are observed. Some Sanskrit epics and puranas indicate that he was the elder son of Shiva. This is suggested by the legend connected to his birth; the wedding of Shiva and Parvati being necessary for the birth of a child who would vanquish the asura named Taraka. Also, Kartikeya is seen helping Shiva fight the newborn Ganesha, Shiva's other son, in the Shiva Purana. In the Ganapati Khandam of the Brahma Vaivarta Purana, he is seen as the elder son of Shiva and Ganesha as the younger. In South India, it is believed that he is the younger of the two. A Puranic story has Ganesha obtain a divine mango of knowledge from Narada winning a contest with Murugan. While Murugan speeds around the world thrice to win the contest for the mango, Ganesha circumambulates Shiva and Parvati thrice as an equivalent and is given the mango. After winning it, he offers to give the mango to his upset brother. After this event, Ganesha was considered the elder brother owing as a tribute to his wisdom.
In many traditions, Murugan is seen as a bachelor. Many of the major events in Murugan's life take place during his youth, and legends surrounding his birth are popular. This has encouraged the worship of Murugan as a child-God, very similar to the worship of the child Krishna in north India. Other traditions have him married to two wives, Valli and Devasena. This lead to a very interesting name : Devasenapati viz. Pati (husband) of Devsena and/or Senapati (commander in chief) of Dev (gods).