Complex sentence: Bairat's history goes back to the time of the Mahabharata, when it was known as "Viratnagar".
Split into simpler sentences: Bairat's history goes back to the time of the Mahabharata. In ancient times it was known as "Viratnagar".