Who was going to be incorporated into Pedro Castillo’s cabinet has been a guessing game for weeks, not least whom he wanted as his prime minister. In practice the appointments have been the focus of a tussle between the demands of his party and its general secretary Vladimir Cerrón and the practicalities of forming a team which will survive beyond the 30 days in which Congress has to give it a vote of confidence.

Even when the presidential plane was taking off for the celebration in Ayacucho on 29 July, no-one knew for sure who the next prime minister would be. The most likely figure to be made prime minister had seemed to be Roger Najar, a figure close to Cerrón. However, his appointment had raised strong opposition among the more moderate members of Castillo’s transition team.

Usually, the composition of the cabinet is known well in advance of a new president taking office. So, this time the lack of such clarity was a break with tradition. While the nominations to ministerial posts was the subject of intense lobbying, this arguably played to the advantage of a president-elect who sought to avoid giving hostages to fortune in the heat of a protracted and polarised wrangle with opponents on the right, a conflict which we have amply covered in recent weeks.

Some of those appointed to lead ministries had been widely expected. Hernando Cevallos was long tipped to be health minister and Juan Cadillo to take the education portfolio. Cevallos is a highly experienced medical doctor who was a member of Congress for the left-wing Frente Amplio between 2016 and 2019. Cadillo was rated, according to one measure, as among the world’s most capable teachers. Héctor Béjar, an independent leftist who made his mark as a guerrilla leader in the 1960s, had emerged as likely foreign minister once it became clear that Manuel Rodríguez Cuadros was unwilling to serve in that capacity. Dina Boluarte, Castillo’s vice-president, also tipped as a possible prime minister, was selected to her preferred job as minister for development and social inclusion. She is one of only two women appointed to the cabinet.

Other appointments brought some well-qualified people into ministerial roles, such as Juan Carrasco as interior minister. Carrasco is a lawyer and former public prosecutor who has confronted organised crime in Lambayeque. But many of the other appointments are of less known people, in some cases linked to union organisations. Cerrón has succeeded in his endeavour to seal his imprint on the new administration.

The full list of appointments is as follows:

President of the Council of Ministers: Guido Bellido Ugarte

Foreign minister: Héctor Béjar

Minister of Defence: Walter Ayala

Minister of the Interior: Juan Carrasco Millones

Minister of Economy and Finance: not announced

Minister of Justice: not announced

Minister of Education: Juan Cadillo

Minister of Health: Henrnado Cevallos

Minister of Agrarian Development: Víctor Mayta

Minister of Labour: Iber Maraví

Minister of Production: Iván Quispe

Minister of Foreign Trade: Roberto Sánchez

Minister of Energy and Mines: Iván Godofredo Merino

Minister of Transport and Communications: Juan Silva

Minister of Housing: Geiner Alvarado

Minister of Culture: Ciro Gálvez

Minister of the Environment: Rubén Ramiro Mateo

Minister of Development and Social Inclusion: Dina Boluarte

Minister for Women and Vulnerable Peoples: Anahí Durand