 Nilgiris was ruled by various dynasties like Satavahanas, Gangas, Kadambas, Rashtrakutas, Hoysalas, the Vijayanagara empire and the Rajas of Ummattur (on behalf of Wodeyars of Mysuru).Tipu Sultan captured Nilgiris in the eighteenth century and extended the border by constructing a hideout cave-like structure.The Nilgiris came into possession of British East India Company as part of the ceded lands, held by Tipu Sultan, by the treaty of Srirangapatnam in 1799.