 One source states that Mustafa was executed by the orders of his nephew, Sultan Murad IV on 20 January 1640 in order to end the Ottoman dynasty and prevented to give power to his mother Kösem Sultan.Another source states that he died of epilepsy which was caused by being imprisoned for 34 years out of his 48 years of life.He is buried in the courtyard of the Haghia Sophia.