Azam was first married on 13 May 1668 to an Ahom princess, Ramani Gabharu, whose name was changed to Rahmat Bano Begum. She was the daughter of the Ahom king, Swargadeo Jayadhwaj Singh, and the marriage was a political one. On 3 January 1669, Azam married his cousin, Princess Jahanzeb Bano Begum, the daughter of his eldest uncle Crown Prince Dara Shikoh and his beloved wife Nadira Bano Begum. Jahanzeb was his chief wife and his favorite wife, whom he loved dearly. She gave birth to her eldest son on 4 August 1670. His grandfather Aurangzeb named him 'Bidar Bakht'. Aurangzeb, throughout his life, always loved the three of Azam and Jahanzeb (who is his favorite daughter-in-law) and Prince Bidar Bakht, a brave and successful general. Bidar Bakht was also Aurangzeb's favorite grandson. Azam's third marriage was fixed with Iran Dukht Rahmat Bano (Pari Bibi), daughter of Aurangzeb's maternal uncle Shaista Khan. However, the marriage could not take place due to the sudden death of Pari Bibi in Dhaka in 1678. In her memory, a mazar (mausoleum) was constructed in Fort Aurangabad (now Lalbagh Fort) in Dhaka. As part of a political alliance, Azam later married his third (and last) wife, Shahar Bano Begum (Padshah Bibi), in 1681. She was a princess of the Adil Shahi dynasty and the daughter of the ruler Ali Adil Shah II. Despite Bijapur and his other marriages, Azam's love for Jahanzeb remained unchanged. Because when she died in 1705, he was filled with great sadness and despair which darkened the rest of his life. Siege of Bijapur In the year 1685 Aurangzeb dispatched his son Muhammad Azam Shah with a force of nearly 50,000 men to capture Bijapur Fort and defeat Sikandar Adil Shah the ruler of Bijapur who refused to be a vassal. The Mughals led by Muhammad Azam Shah could not make any advancements upon Bijapur Fort mainly due to the superior usage of cannon batteries on both sides. Outraged by the stalemate Aurangzeb himself arrived on 4 September 1686 and commanded the Siege of Bijapur after eight days of fighting and the Mughals were victorious. Subahdar of Bengal Prince Azam was appointed the governor (Subahdar) of Berar Subah, Malwa and Bengal from 1678 to 1701 upon the death of his predecessor, Azam Khan Koka. He successfully captured the Kamrup region in February 1679. He founded the incomplete Lalbagh Fort in Dacca.