In federal countries like Germany the mayor can also be head of the government of a city state. The Mayor of Hamburg runs the government just like the Minister President of Bavaria runs the Bavarian government. In some big cities such as Tokyo the Mayor is a Governor.