Mehmed IV (1642–1693) was the Sultan of the Ottoman Empire from 1648 to 1687. He came to the throne at the age of six, and went on to become the second longest reigning sultan in Ottoman history. During his middle years, he oversaw the revival of the empire's fortunes associated with the Köprülü era. Mehmed was known by contemporaries as a particularly pious ruler, and was referred to as gazi, or "holy warrior" for his role in the empire's many conquests. In 1687, after being overthrown, Mehmed retired to Edirne, where he resided until his death.Painting: Unknown