Abdication
Abdication is the act of resigning from an office (official job), especially from being the leader of a country. The word is normally used for kings and queens who decide to give up their position which brings an end to a reign.  The term is also used for popes.