Mahasenagupta was a Later Gupta king who ruled Magadha from 562 until his defeat in 575. He then ruled Malwa. Shortly before his death in 601, Mahasenagupta sent his sons Kumaragupta and Madhavagupta to Thanesar, where they became companions of Rajyavardhana and Harshavardhana.