Authorities in France temporarily blocked trains from Italy in an attempt to stop north African migrants from entering the country.
Trains were stopped at the border for hours – prompting Italy to launch an official complaint with France. Services were later resumed.
Italy has angered France by giving temporary resident permits to thousands of Tunisian migrants.
The permits allow them to travel freely in many European countries.
The Italian foreign ministry said the French move was “illegitimate and in clear violation of general European principles”.
Speaking earlier on Sunday, Maurizio Furia, a spokesman for the Italian rail company, said that trains were not being allowed to pass into Menton, France, from the Italian border station of Ventimiglia.
The BBC’s Hugh Schofield says a demonstration in support of the Tunisian immigrants had been planned, in which some 300 protesters had planned to ride what they dubbed “the train of dignity”.
Because of the closure, the demonstration was unable to take place.
France has said migrants have to prove they can support themselves financially and has set up patrols on the Italian border.
But Italy says that France’s actions are not in line with the EU’s Schengen passport-free travel zone.
“We have given the migrants travel documents, and we gave everything (else) that is needed, and the European Commission recognised that, it has said that Italy is following the Schengen rules,” Italian Interior Minister Roberto Maroni said in an interview on Italy’s Sky TG24 TV.
Italy and other European countries have been increasingly concerned about migration from north Africa following the political turmoil in the region.
Earlier this month, Italy and France agreed to launch sea and air patrols to try to prevent the influx of thousands of people from Tunisia, Egypt and Libya.
- "We reached our limits": Greece to stop taking back refugees
- Defiant Muslims block traffic, pray in street of Paris shouting Allahu Akbar
- Erdogan Threatens to Start Murdering Europeans on the Streets
- French Presidential Race: Marine Le Pen Far Ahead of Rivals in Secret Polling
- Le Pen Niece to Erdogan: Turks Belong in Turkey