The princely state of Bahawalpur was founded in 1802 by Nawab Mohammad Bahawal Khan II after the break-up of the Durrani Empire, and was based in the city. In 1807, Ranjit Singh of the Sikh Empire laid siege to the fort in Multan, prompting refugees to seek safety in Bahawalpur in the wake of his marauding forces that began to attack the countryside around Multan. Ranjit Singh eventually withdrew the siege, and gifted the Nawab of Bahawalpur some gifts as the Sikh forces retreated.