The governor of New York can legally remove the mayor of any city in the state — including the mayor of New York City — after giving them formal charges and a chance to defend themselves. The governor can also temporarily suspend the mayor for up to 30 days while deciding. This power has existed for a long time but has almost never been used (the closest case was in the 1930s, when the mayor resigned before being removed).