Complex sentence: Following the successful recapture of Baghdad in 1624, the Iranians subsequently defended it against several Ottoman attacks, and, prior to the 1638 siege, Bektash had made extensive repairs to the fortifications that were damaged in the previous sieges.
Split into simpler sentences: Following the successful recapture of Baghdad in 1624, the Iranians subsequently defended it against several Ottoman attacks. Bektash made considerable repairs to the fortifications that were damaged in the previous sieges.