Bektash Khan made considerable repairs to the fortifications that were damaged in the previous sieges.[2] He also built extensive outworks to prevent the enemy from approaching the walls.[2] During the decisive Ottoman siege of 1638, Bektash Khan offered tough resistance, and it took them almost six weeks to take the city.[3] Bektash Khan died a year after the fall of Baghdad.[4]