During the campaign of sultan
Murad IV for
Baghdad (see
Ottoman–Safavid War (1623–1639)), he was tasked with guarding
Mosul. But when
Bayram Pasha, then grand vizier, died on the way to Baghdad, the sultan appointed Tayyar Mehmed Pasha as the new grand vizier. The siege of
Baghdad took more than 40 days. The impatient sultan reprehended the Pasha, who was directing the siege cautiously to minimize losses. After this incident, Tayyar Mehmed Pasha decided for a general attack and personally took part in the fighting on 24 December 1638 in the
capture of Baghdad. Although the attack was successful, Tayyar Mehmed Pasha was killed during the fighting. The sultan expressed his sorrow, saying
"O Tayyar, You are worth one hundred castles [cities] like Baghdad." Following
Hadım Ali Pasha in 1511 and
Hadım Sinan Pasha in 1517, Tayyar Mehmed Pasha was the third Ottoman grand vizier to be killed in battle. ==References==