Two Italian anti-establishment parties on Friday agreed on a joint government program that includes the mass deportation of immigrants and slashing taxes, according to the leader of one of the parties.

Luigi Di Maio, leader of the populist, eurosceptic Five-Star Movement (M5S), said in a video posted to his Facebook account that an agreement had been reached with the far-right, anti-immigrant and regionalist Lega Nord (LN), headed by Matteo Salvini.

"Today, the contract for the government of change has finally been defined in all its parts," Di Maio said. "I'm really happy. It has been 70 very intense days, so many things have happened, but in the end we managed to achieve what we announced during the campaign."

Di Maio said he was satisfied with what had been done and encouraged all M5S members to vote online to ratify the pact.

The deal has been laid out in a document spanning 57 pages and covering 23 points outlining a governing program, although it has yet to be decided who will become the country's next prime minister.

Both parties have a long history of euroscepticism: the M5S, founded by comedian Beppe Grillo in 2009, has always been highly critical of the European Union's policies and the euro, while Di Maio has said that he supported a referendum to leave the bloc, although he later retracted this position.

The LN, on the other hand, started as a separatist movement that called for the independence of the prosperous northern region of "Padania," a fictional name for the area known as the Po Valley, before evolving towards a more generic Italian nationalism.

The party has a strong stance against illegal immigration, especially when it comes to Muslims, and often brandishes Italy's "Judeo-Christian identity" as a bulwark against the supposed spread of Islam.

It opposes what it calls a "European superstate" and has proposed that Italy leave the eurozone.

M5S obtained 32.22 percent of the vote in the Mar. 4 parliamentary election, while the LN earned 17.69 percent.

The parties have been embroiled in government negotiations ever since, which have come to an end with the preliminary deal that must now be approved by their voters before being presented on Monday to President Sergio Mattarella, who is tasked with appointing a new PM.