The 12th Government of Slovenia, led by Prime Minister Miro Cerar, was announced on 18 September 2014. It was formed following the 2014 parliamentary election won by the centre-left Party of Miro Cerar; it was the third government formed over four years. At 51 years, Cerar was the second oldest Prime Minister of Slovenia since Independence, following Andrej Bajuk at 56 years. The cabinet had on the day of inauguration the highest number of women ministers representatives, as there were seven women ministers out of sixteen ministers in total. Cerar's cabinet was the highest educated cabinet to date, with six members with a doctorate.

After the resignation of Alenka Bratušek's cabinet, President Borut Pahor determined that the new elections would take place on 13 July 2014. With 34.49% Cerar won by the highest percentage on any parliamentary elections since Independence. It was decided not to cooperate with the Slovenian Democratic Party (SDS), as its leader Janez Janša was sentenced to two years imprisonment. On 28 July 2014 Cerar sent an outline of the coalition agreement to all other parties that attended the coalition talks. 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. The next and last to join the coalition was Dejan Židan with his Social Democrats (SD) party. The coalition agreement was signed on 3 September 2014.

12th Government of Slovenia

Cabinet members came from three parties of the new coalition: Party of Miro Cerar (SMC): 8 ministers and 1 minister without portfolio Democratic Party of Pensioners of Slovenia (DeSUS): 3 ministers and 1 minister without portfolio Social Democrats (SD): 3 ministers Independent (Ind): 1 minister

12th Government of Slovenia

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.

12th Government of Slovenia

Changes from the preceding cabinet

The number of ministries rose to 16, up from 13 in the preceding Cabinet of Alenka Bratušek. Anja Kopač Mrak, Gorazd Žmavc, Dejan Židan and Karel Erjavec have retained their position.

Ministry without Portfolio responsible for Development, Strategic Projects and Cohesion was added on the list of ministries without portfolio. With this change, the number of ministries without portfolio rose to two. The position of the Vice president of the government was renewed after 14 years, when Marjan Podobnik was the last to hold it. Cerar named three vice presidents. Ministry of Interior and Public Administration was divided on two ministries: Ministry of Interior and Ministry of Public Administration. Minister of Infrastructure and Urban Planning was also divided on two departments: Ministry of Infrastructure and newly formed (already existent in some previous governments) Ministry of Environment and Spatial Planning.