It was the founder of Bengaluru, Kempegowda I, who built the temple, some 3 km south of his walled city.