Bharthari is said to have written his great epics, Virat Katha, Neeti Sataka, the love story of Pradyot Princess Vasavadatta and Udayan in Ujjayini, as the city was called during his times. The writings of Bhasa are set in Ujjain, and he probably lived in the city. Kalidasa also refers to Ujjain multiple times, and it appears that he spent at least a part of his life in Ujjain. "Mrichchhakatika" by Shudraka is also set in Ujjain. Ujjain also appears in several stories as the capital of the legendary emperor Vikramaditya. Somadeva's "Kathasaritsagara" (11th century) mentions that the city was created by Vishwakarma, and describes it as invincible, prosperous and full of wonderful sights.