Denmark's Prime Minister Mette Frederiksen decided to step down along with her Social Democratic government despite winning the election.
Frederiksen's announcement on Wednesday followed a dramatic vote count in which the center-left bloc that had backed her since 2019 retained its majority in the parliament by a single seat.
The Prime Minister said she would stick to promises made before Tuesday's election to try to form a wider governing coalition that includes parties on the center-right.
"I am happy, proud, and grateful," Frederiksen said. "It has been a very difficult few years to be prime minister: first the pandemic, now inflation. A lot indicated that a sitting government would not achieve reelection."
Frederiksen handed her resignation to Queen Margrethe, Denmark's figurehead monarch.
Meanwhile, she will remain in her position until a new government is formed.