Answer
Mehmed IV, the Ottoman Sultan known for his extravagant lifestyle and construction projects, reigned for an impressive 39 years. During his rule from 1648 to 1687, the Ottoman Empire experienced both triumphs and challenges. Mehmed IV's early reign was marked by military successes, including the conquest of Crete in 1669. However, his later years were marred by military setbacks, such as the defeat at the Battle of Vienna in 1683.