The Ranganatha Swamy and the Someshwara temples are located in the historic town of Magadi, about 41 km from Bangalore, the capital of the Indian state of Karnataka. These temples are protected monuments under the Karnataka state division of the Archaeological Survey of India.
Group of temples at Magadi, Karnataka Wikipedia
Magadi was first founded by the Chola dynasty around 1139 A.D. during their rule over the region. Magadi is the birthplace of Kempe Gowda, the Vijayanagara chieftain who founded Bangalore in the 16th century. Kempe Gowda and the chiefs who followed him built many architectural temples here.
According to Achari, The sanctum of the Ranganatha temple was first consecrated in early 12th century by the Chola ruler and the temple has undergone renovations and expansion since. Based on an inscription on a Garuda sthamba (Garuda pillar) in front of the temple, the tall decorative Gopurams (towers) were added by the famous Vijayanagara empire King Krishnadeva Raya in 1524 A.D. Contributions were also made by the Mysore regent Tipu Sultan; and the Maharaja of Mysore, Jayachamaraja Wodeyar. The Ranganatha temple complex consists of several shrines which includes sanctums for the Hindu deities Rama, Sita, Anjaneya, Lakshmi, Venugopala Krishna and Ranganatha (a form of the Hindu god Vishnu). Legend has it that the main deity (Ranganatha) was installed by Sage Mandavya lending the location the name "Mandavya Kshetra" (abode of Manavya). The pillars in the temple have attractive sculptures in relief. On either side of the temple entrance are two large colorful images of elephants.
According to the noted epigraphist and historian B. Lewis Rice, the Someshwara temple was built by Kempe Gowda II after coming to power in 1569 A.D. However, there is another view that the temple was actually built by his descendant Kempavira Gowda III in 1712 A.D. Notable structures in the large temple complex include a spacious inner prakara (courtyard) with lofty towers and mantapas (halls) which are in a state of neglect. Pillar decor includes motifs of dancing girls, soldiers, birds, and animals such as lions in relief. The complex includes a small shrine for Parvati, consort of the Hindu god Shiva. A short distance from the complex is a mantapa for Nandi, the vehicle of the god Shiva.