Answer
In 1687, Mehmed IV's reign came to an end when he was overthrown and sent into retirement in Edirne, a city in northwestern Turkey. This event marked a significant turning point in Ottoman history, as it signaled the end of the Köprülü Era and the beginning of a period of political instability and military decline for the empire.