Mandavya river starts from kanchalamma gandi near Rayachoti in Kadapa district of Andhra Pradesh. It flows through Rayachoty, Matli and enters palakondalu range and drains into Bahuda River which in turn drains into Pennar River.Mandavya was a sage, who according to Hinduism, was wrongly punished by the king by being impaled. This occurred as the chief of a band of robbers had hidden their stolen goods in a corner of his hermitage when he was in deep contemplation, and he was wrongly assumed to have stolen the goods. Lord Yama gave him this punishment for having tortured birds and bees in his childhood. In response, Mandavya cursed the Dharma, as his punishment exceeded the sins committed as an ignorant child.Therefore, he cursed him to be born in the mortal world. He was born as Vidura, the wise, to the servant maid of Ambalika, wife of King Vichitravirya, who offered her to Sage Vyasa in place of Ambalika. It is also considered in the mythological Hinduism story that Mandavya rishi is a son of Manu and his name is manavya, later change into Mandavya. But In other Accounts, Mandavya rishi have also pravaras of Rishi Chayavana, Jamadagni and Aapvan. Mandavya is a gotra in different castes.