Vatican City State is governed as an absolute monarchy. The Head of State is the Pope who holds full legislative, executive and judicial powers.
During a sede vacante (between the death of a Pope and the election of his successor), these powers are exercised by the College of Cardinals.
The Pope is elected by the Cardinals who are under eighty years of age. He becomes Sovereign of Vatican City State the moment he accepts his election as Pope.