After the death of Achyuta Deva Raya, the succession was disputed. His son, Venkata I also called as Venkata Raya or Venkatadri Raya, succeeded him, but he was a weak ruler and was killed six months later.
The Mosque was built by Mughal emperor, Shah Jahan’s daughter in 1648 A.D. It was constructed by more than 5000 workers. It was originally called Masjid-i-Jahan Numa, meaning ‘mosque commanding view of the world’.