At long last, Italy has a government.

After months of political deadlock, the two biggest parties — the far-right League and anti-establishment 5Star Movement — put aside their differences and forged a coalition. And at the second time of asking, President Sergio Mattarella said yes to the Cabinet choices put forward by Giuseppe Conte, the little-known law professor who will be prime minister.

The first selection was rejected because of the presence of the anti-euro economist Paolo Savona as economy minister. Savona's still there — "another insult to the president," according to one outgoing government official — but has been moved to the seemingly less problematic role of EU affairs minister.

The new government is comprised of 18 ministers, five of whom are women. There are nine Cabinet members from the 5Stars, seven from the League (including Savona) and two technocrats. There are four lawyers in the team, including the prime minister. Six of the 18 are from Lombardy, Italy's richest region and a League stronghold.

Here are the ministers to watch:

Giovanni Tria — economy minister

As late as Tuesday, League leader Matteo Salvini was refusing to accept anyone other than the controversial Savona for this job, and the 5Stars had initially called for Mattarella to be impeached for rejecting his candidacy.

But after the 5Stars calmed down, and people close to Salvini applied pressure, a new name was found, with Savona moved elsewhere.

The choice was Giovanni Tria, 69, an economist with a law degree and a university professor in Rome. The daily La Stampa wrote Friday that when he was young, Tria was a Maoist but the only legacy of that period is that he understands Chinese.

He has always been considered close to the center right and in 2010 was appointed head of the National School of Public Administration, a position he held until 2017. His CV says he was a “consultant at the World Bank for technical assistance to the Ethiopian Government.”

In a government that (for now) has dropped its anti-euro stance but not its anti-Berlin rhetoric, Tria seems a good fit. Described as “critical pro-EU” in a recent article in the financial daily Il Sole 24 Ore, he has attacked Germany's trade surplus as evidence of the single currency's failure and called for more investments “outside EU parameters.”

Savona made clear that he supported Tria for the Treasury but the latter doesn't share the former's Italexit stance. In the same Il Sole 24 Ore article, he wrote that “those who call for leaving the euro are wrong.”

Enzo Moavero Milanesi — foreign minister

The other technocrat in the Cabinet is Moavero Milanesi, 63, who was EU minister in the technocratic government led by former European Commissioner Mario Monti and under Enrico Letta of the center left.

Described as “Italy's most powerful eurocrat,” he has a degree in law from Rome's La Sapienza and a master's in EU law from the College of Europe in Bruges. He's well known in Brussels thanks to 20 years in the Commission and from 2006 to 2011 he was a judge at the European Court of Justice.

In opinion pieces in Corriere della Sera, Moavero Milanesi has expressed admiration for French President Emmanuel Macron. But when at the start of May he published a column that was sharply critical of the EU, mischievous officials in Rome said he was trying to get closer to the populists. He's going to be very close to them now, and Italian media are already predicting clashes with the fiery Savona.

A well-known story about Moavero Milanesi is that when he was first appointed as a minister, he was given a desk but refused to use it because it once belonged to Benito Mussolini. “I'm an anti-fascist, I don't want it,” he was reported as saying.

Matteo Salvini — interior minister

The League leader, 45, will also be a deputy prime minister, as will 5Star chief Luigi Di Maio, and it's clear that the two deputies will be much more powerful than Conte, the prime minister.

Salvini has on several occasions spoken out in favor of an Italexit but like his role model, Hungarian Prime Minister Viktor Orbán, he also pays lip service to the EU and has said “the League backs the peoples' Europe.”

The governing contract he drew up with the 5Stars contains the goal of sending back half a million migrants and keeping them locked up for up to 18 months while the paperwork is completed. It's been criticized for being draconian but locking migrants up for 18 months is allowed under EU law. One Brussels official even said that if Salvini makes it work in "a legal and human way, it could become a model" for other countries.

He's already been dubbed the "sheriff minister" by analysts who expect him to be on the frontline of rounding up migrants.

Salvini's debut could be on Tuesday at a meeting of EU interior ministers at which they will discuss reform of asylum rules ahead of a meeting of EU leaders later this month.

Luigi Di Maio — labor and development minister

Di Maio, 31, will oversee a jumbo ministry that brings together the departments of economic development and labor. Like Salvini, he does not have a university degree (he dropped out of law school in Naples) and will be a deputy prime minister.

Although Di Maio is the leader of the 5Stars, that's a short-term situation as internal party rules put a two-term cap on MPs. That in part explains why he seemed so determined to get into power as it could have been his last chance.

For the 5Stars, getting into office is a big achievement. The League has been in power before alongside Silvio Berlusconi but this is the first time in such high office for the movement set up by comedian Beppe Grillo. And with 32 percent of the vote in the March 4 election, Di Maio is the majority shareholder in the government (the League got 17 percent).

Di Maio's ministry is key for his party. The 5Stars have made labor an important part of their platform — and in the process wrested it away from the center left — by proposing a universal income (although that's morphed into better unemployment benefits). The joint government contract promises an income of €780 a month, for a maximum of two years, but the recipient can turn down only three job offers before losing the money. In many parts of the country's poor south, where the 5Stars enjoy huge support, being offered three jobs is unlikely.

Paolo Savona — EU minister

The distinguished economist and former minister, 81, studied at the Massachusetts Institute of Technology, as did European Central Bank President Mario Draghi.

But that's where the similarities end, as Savona is famous for his anti-euro stance, which he never backed down from, even when put forward as economy minister.

Savona is one of the authors of a detailed plan to leave the euro that envisages keeping the exit a secret for as long as possible and announcing that Rome is leaving on a Friday evening and being out by Monday.

The economist has a sharp mind and experience, and even in his reduced role as EU minister he will have a big say in what goes on. There may be balanced figures such as Tria at the Treasury and Moavero Milanesi at the foreign ministry but Savona “will dictate the line,” La Stampa wrote Friday.

Savona's appointment could, however, please London on Brexit. In June 2016, Savona praised the strength of British democracy and described Brexit as an opportunity for the EU to become more democratic. The EU elites “treat the people like a barbaric and ignorant flock, while they implicitly call themselves civilized and integrated, capable of evaluating popular will better than voters,” he wrote. He said the elite want people to vote “only if they vote well.”