Devanahalli Fort is located 35 kilometers (22 mi) north of Bangalore city, at Devanahalli in the State of Karnataka, India.It was originally built in 1501 by Mallabairegowda,which remained in the hands of his descendants until the mid–eighteenth century. In 1749, the then Dalwai of Mysore, Nanjarajaiah, attacked the fort and occupied it.