While the primary capital of the Gupta Empire was Pataliputra, Ujjayini became an important administrative and cultural center during Chandragupta II's reign, particularly after his conquests in western India from the Shaka Satraps. It is often referred to as his second capital.