section_path: As a prince/Viceroy of Ujjain
section_name: Viceroy of Ujjain
paragraph_text: Viceroy of Ujjain
  
  According to the Mahavamsa, Bindusara appointed Ashoka as the Viceroy of Avantirastra (present day Ujjain district), which was an important administrative and commercial province in central India. This tradition is corroborated by the Saru Maru inscription discovered in central India; this inscription states that he visited the place as a prince. Ashoka's own rock edict mentions the presence of a prince viceroy at Ujjain during his reign, which further supports the tradition that he himself served as a viceroy at Ujjain.
  
  Pataliputra was connected to Ujjain by multiple routes in Ashoka's time, and on the way, Ashoka entourage may have encamped at Rupnath, where his inscription has been found.
  
  According to the Sri Lankan tradition, Ashoka visited Vidisha, where he fell in love with a beautiful woman on his way to Ujjain. According to the Dipamvamsa and Mahamvamsa, the woman was Devi – the daughter of a merchant. According to the Mahabodhi-vamsa, she was Vidisha-Mahadevi and belonged to the Shakya clan of Gautama Buddha. The Buddhist chroniclers may have fabricated the Shakya connection to connect Ashoka's family to Buddha. The Buddhist texts allude to her being a Buddhist in her later years but do not describe her conversion to Buddhism. Therefore, it is likely that she was already a Buddhist when she met Ashoka.
  
  The Mahavamsa states that Devi gave birth to Ashoka's son Mahinda in Ujjain, and two years later, to a daughter named Sanghamitta. According to the Mahavamsa, Ashoka's son Mahinda was ordained at the age of 20 years, during the sixth year of Ashoka's reign. That means Mahinda must have been 14 years old when Ashoka ascended the throne. Even if Mahinda was born when Ashoka was as young as 20 years old, Ashoka must have ascended the throne at 34 years, which means he must have served as a viceroy for several years.