Devanahalli Fort, situated 35 kilometers (22 mi) to the northern side of the city of Bengaluru, is an important sightseeing location. The historical facts of Devanahalli date back to 15th century. As per local evidences, families and fleeing refugees had camped at the foothills of Ramaswami betta or the modern day Kanchi during this period. They had come in from Conjeevaram to the eastern side of Nandi Hills in search for a serene and peaceful settlement. It is said that Rana Baire Gowda, their leader , had guided them in a dream and ordered them to make their homes in this region. Gowda, along with his Morasu Wokkalu family had settled down in the village of Avati, earlier known as Ahuti. Chikka-ballapura, Devanahalli and Dodda-ballapura were founded by his son Malla Baire Gowda. Kempe Gowda (founder of Bengaluru), also belongs to the same family.
Devanahalli has been a part of the reign of Pallavas, Cholas, Hoysalas, Rashatrakutas, Nolamba as well as the Vijayanagara rulers. The original mud fort was constructed in 1501 AD under the instructions of Devaraya at Devanadoddi. The fort had then passed on to the Vodeyars of Mysore in1747 AD, when Nanja Raja was the king.