Magha was a Sanskrit poet at King Varmalata's court at Shrimala, the then-capital of Gujarat. Magha was born in a Shrimali Brahmin family. He was the son of Dattaka Sarvacharya and the grandson of Suprabhadeva. His epic poem (mahākāvya) Shishupala Vadha, in 20 sargas (cantos), is based on the Mahabharata episode in which Krishna uses his chakra (disc) to behead the defiant king Shishupala. He is thought to have been inspired by, and is often compared with, Bharavi.