The College of Cardinals must now meet in Rome and choose Pope Benedict XVI's replacement in a tradition dating back almost 1000 years.
Since 1059, the selection of the next head of the Catholic Church has been reserved to the College of Cardinals who are appointed by the pope. Up to 120 cardinals, aged under 80 and from all over the world, will vote.
The college becomes responsible for the day-to-day running of the Church. The cardinals' coming together is known as the conclave – from the Latin cum clave, meaning "with a key" in reference to them being locked in the Apostolic Palace until they produce a result.
Under regulations introduced in 1996, the cardinals will be housed in a building inside the Vatican's walls called the Domus Sanctae Marthae (St Martha's House).
The secretive voting process takes place beneath Michelangelo's fresco of the Last Judgment in the Sistine Chapel.
Any breaches could result in their excommunication. The cardinals wear a traditional black cassock with piping and red sash, a skull-cap, pectoral cross and ring throughout the process.
Nowadays voting allows for a two-thirds majority. Before 1996, either cardinals agreed to one name without prior arrangement or by compromise.
The first vote usually takes place on the afternoon of the first day and there are then two ballots each morning and each afternoon thereafter until a result is declared.
Each cardinal enters a name on a special ballot paper and then, in order of precedence, puts it in a receptacle on an altar. Three chosen cardinals, known as scrutineers, go through the votes one by one and announce the name on each paper. The names are counted and if a name has received two-thirds of the votes, the pope has been elected.
If the first ballot does not produce a result, the process is repeated for three days, after which there is a day's rest for prayer, reflection and informal discussions.
The voting then begins again for a series of seven more ballots and then another break.
The process is repeated twice more and if there is still a stalemate, the chamberlain will declare a result can come from an absolute majority or by a vote on the two names that received the largest number of votes in the last ballot.
The candidate is then asked if he accepts and what name he wishes to take.
Tradition dictates that once a pope has been elected, white smoke will billow from the Vatican chimney – representing the burning of the ballot papers.
If the person elected is not already a bishop, he shall be immediately ordained and becomes the Bishop of Rome.
The pontificate is inaugurated at a ceremony in St Peter's Square within days.