After the resignation of Alenka Bratušek's cabinet, President Borut Pahor determined that the new elections would take place on 13 July 2014.
It was decided not to cooperate with the Slovenian Democratic Party (SDS), as its leader Janez Janša was sentenced to two years imprisonment.
The first to agree was the president of Democratic Party of Pensioners of Slovenia (DeSUS) Karel Erjavec, with whom Cerar gathered the necessary 45+ seats in Parliament.
Cabinet members came from three parties of the new coalition: On the 14 March 2018, following the verdict of the Supreme Court of Slovenia to annul the referendum on the so-called "Second Railway track", Miro Cerar announced his resignation as Prime Minister.
Anja Kopač Mrak, Gorazd Žmavc, Dejan Židan and Karel Erjavec have retained their position.