Vatican City is a theocracy: The pope (and a few high-ranking clerics) run the state. When the pope dies, or steps down, a number of high-ranking priests (called cardinals) select a new pope, through an election. When they are done, they will announce the result in a speech, called Habemus Papam (Latin: We have a pope)