text: Maheshwar is believed to be built on the site of the ancient city of Somvanshya Shastrarjun Kshatriya, and was the capital of king Kartavirya Arjuna, (Shree Shastrarjun) who is mentioned in the Sanskrit epics Ramayana and Mahabharata. According to a popular legend, one day the King Sahasrarjun and his 500 wives went to the river for a picnic. When the wives wanted a vast play area, the King stopped the mighty river Narmada with his 1000 arms. While they were all enjoying themselves, Ravana flew by in his Pushpak Vimana. Downstream, when he saw the dry river bed, he thought it was an ideal place to pray to Lord Shiva. He made a Shivalinga out of the sand and began to pray. When Sahasrajuna's wives were done playing and they stepped out of the river bed, he let the waters flow. The voluminous river flowed down sweeping Ravana's Shivalinga along, messing up his prayers. Furious, Ravana tracked Sahasrajuna and challenged him. Armed to the hilt the mighty Ravana was in for a huge surprise. The mighty Sahasrarjuna with the 1000 arms pinned Ravana to the ground. Then he placed 10 lamps on his heads and one on his hand. After tying up Ravana, Sahasrarjuna dragged him home and tied him up to the cradle pole of his son. A humiliated Ravana stayed prisoner until his release was secured. Jamadagni rishi, Renuka Devi and Lord Parashurama with whom Kartavirya Arjuna's story is closely associated also lived nearby.
  In Mahabharata, there is a narration of an unusual tradition wherein marriage as a civil institution was not universal in Mahishmati unlike in rest of Aryavarta, which is also narrated in the Telugu-language Andhra Mahabharata in ‘Sabha parva’.