Answer
The Gupta dynasty ruled India during Brahmagupta's lifetime. The Gupta period, spanning from the 4th to the 6th centuries CE, was a golden age for Indian mathematics, astronomy, and other sciences. Brahmagupta, one of the most renowned mathematicians of this era, made significant contributions to these fields, including the development of new theorems and formulas.