 On 6 June 2019, he resigned from his position as prime minister after a general election, in which his government was defeated.However, he continued to lead a caretaker government until a new government was formed and sworn in.This was completed on 27 June 2019 and Rasmussen was succeeded as Prime Minister by Mette Frederiksen.