In 1347 when Ala-ud-Din Bahman Shah, a governor under bin Tughluq, rebelled against Delhi and established the Bahmani Sultanate in the Deccan Plateau, with Gulbarga— 200 kilometers west of Hyderabad—as its capital, both the neighboring rulers Musunuri Nayakas of Warangal and Bahmani Sultans of Gulbarga engaged in many wars until 1364–65 when a peace treaty was signed and the Musunuri Nayakas ceded Golconda fort to the Bahmani Sultan.