The temple was built by Bhakta Ramadasu (born Gopanna), a 17th-century revenue collector and devotee of Lord Rama, who served under the Qutb Shahi ruler Abul Hasan Tana Shah of Golconda. According to legend, Ramadasu collected taxes but used the funds to build the temple instead of remitting them to the treasury. When summoned by the king, he was imprisoned for 12 years.
During his imprisonment, Lord Rama and Lakshmana appeared in the king's dream, paid the dues, and secured Ramadasu's release. The king, upon waking, found the gold coins miraculously present and ordered Ramadasu's release. The original temple structure dates to 1674 CE. Ramadasu is also the author of the famous 'Dasaradhi Satakam,' a collection of 108 Telugu devotional poems.
The temple was later renovated by various rulers, including the Nizam of Hyderabad, and is now maintained by the Endowments Department of Telangana state.












