The Ahmadnagar Sultanate was a medieval Marathi Muslim kingdom located in the northwestern Deccan, between the sultanates of Gujarat and Bijapur, ruled by the Nizam Shahi dynasty. It was established by Malik Ahmad Nizam Shah I in 1490. He was the son of Malik Hasan Bahri and was originally part of the Kulkarnis of Pathri in Marathwada. After serving as governor of Beed and other districts, Malik Ahmad declared independence from the Bahmani Sultanate and established Ahmadnagar Sultanate. Initially the capital was in the town of Junnar with its fort, later renamed Shivneri. In 1494, the foundation was laid for the new capital Ahmednagar. A land fort called Ahmednagar Qila was the headquarters of the Ahmednagar Sultanate.
After Malik Ahmad's death in 1510, his young son Burhan Nizam Shah I became ruler, converting to Nizari Isma'ili Shi'a Islam. The dynasty played a major role in the Deccan region, including forming an alliance of Muslim sultanates that defeated the Vijayanagara Empire at the Battle of Talikota in 1565, where Sultan Hussain Nizam Shah I personally beheaded Rama Raya, the Vijayanagara regent. Subsequent rulers included Murtaza Nizam Shah I, who expanded the kingdom to its largest size and repelled a Mughal invasion in 1586. Internal strife and assassinations marked later reigns, with regents like Chand Bibi and Malik Ambar defending the sultanate from Mughal attacks until Ahmadnagar was eventually conquered. In 1636 Aurangzeb, then Mughal viceroy of the Deccan, annexed the sultanate to the Mughal Empire. The Ahmadnagar Sultanate was notable for its cultural contributions, including the earliest Deccan school of painting and extensive architectural works such as palaces (Farah Bakhsh Bagh, Hasht Bihisht Bagh), forts (Junnar/Shivneri, Daulatabad), mosques, and tombs. The capital city Ahmadnagar was modeled after major Persianate cities and was considered highly impressive in its time. Malik Ambar is credited with building the Janjira Fort, which played a strategic role in regional defense.