Answer
Mehmed IV ascended the throne at a tender age due to a palace coup led by his viziers, the high-ranking officials of the Ottoman Empire. These viziers, dissatisfied with the rule of Mehmed IV's father, Sultan Ibrahim, orchestrated his overthrow, leading to Mehmed IV's unexpected accession to the throne.