Ramgupta was the elder son of Samudragupta. Samudragupta was succeeded by Ramagupta according to some legends, but Chandragupta II killed him. It is also believed that during the tenure of  Ramagupta, the Gupta empire was invaded by a powerful Shaka kin.