Beneš became second president of Czechoslovakia. He led Czechoslovakia until 1938 when he had to leave Czechoslovakia due to World War II and formed the Czechoslovak government-in-exile. He became the leader of the resistance to Nazi Germany and returned to his position as the president of Czechoslovakia when the country was liberated. He resigned in 1948 due to the 1948 coup d'etat.