section_path: History/Vikramaditya legend
section_name: Vikramaditya legend
paragraph_text: Vikramaditya legend
  
  According to popular tradition, King Vikramaditya of Ujjain established the Vikrama Samvat era after defeating the Śakas.
  
  Kalakacharya Kathanaka (An account of the monk Kalakacharya), by the Jain sage Mahesarasuri, gives the following account: Gandharvasena, the then-powerful king of Ujjain, abducted a nun called Sarasvati, who was the sister of the monk. The enraged monk sought the help of the Śaka ruler King Sahi in Sistan. Despite heavy odds but aided by miracles, the Śaka king defeated Gandharvasena and made him a captive. Sarasvati was repatriated, although Gandharvasena himself was forgiven. The defeated king retired to the forest, where he was killed by a tiger. His son, Vikramaditya, being brought up in the forest, had to rule from Pratishthana (modern Paithan in Maharashtra). Later on, Vikramaditya invaded Ujjain and drove away the Śakas. To commemorate this event, he started a new era called the "Vikrama era". The Ujjain calendar started around 58–56 BCE, and the subsequent Shaka-era calendar was started in 78 CE at Pratishthana.