The Hokage are appointed by the village elders and confirmed by the Village Council. They are never voted for. In the Third Shinobi World War, all seven Hokage were targeted by Muneshige Kishimoto to be assassinated. This would result in the fall of the village.