ROME — Announcing his new cabinet on Wednesday, Prime Minister Giuseppe Conte of Italy ended what news reports here had called “the craziest crisis in the world,” brought on by the sudden collapse of the country’s government last month when one of his coalition partners pulled its support.

Mr. Conte appeared to be out of power, but he prevailed after feverish negotiations to cobble together a new majority and avoid early elections — and the likely consolidation of power by Italy’s popular hard-right leader, Matteo Salvini, who had broken with Mr. Conte.

On Wednesday, Mr. Conte presented his freshly minted cabinet to President Sergio Mattarella. It was a repeat performance for Mr. Conte, who first became prime minister 14 months ago as the leader of a populist coalition, including Mr. Salvini’s League party and the anti-establishment Five Star Movement, that sent shivers through the European establishment.

In his new coalition, Five Star is flanked by the center-left Democratic Party — sworn enemies turned unlikely bedfellows — as well as the small, left-leaning Free and Equal party.