In addition, officials said that informal migrant camps in and around Paris would be cleared by the end of the year, as the government confronts a growing and visible problem in many French cities.
But the government also announced that, starting next year, it would for the first time establish a system of annual quotas to grant visas to skilled immigrants looking to enter France.
“We want to regain control over our immigration policy,” Prime Minister Édouard Philippe said.
While that may have been the intention, the announcement did as much to underline the political peril the issue presents for Mr. Macron, a centrist whose shape-shifting has often dissatisfied French voters across the political spectrum.
The measures drew immediate criticism from both the right, who said they didn’t go far enough, and the left, who said Mr. Macron was unnecessarily endangering the already vulnerable population of asylum seekers for political ends.
In a long interview on the presidential plane with a right-wing magazine, “Valeurs Actuelles,” Mr. Macron recently said the authorities had been lax in expelling those who had entered France illegally.
“My goal is to throw out everybody who has no reason to be here,” he said.
In an interview on Radio France, Ms. Le Pen said that the government was addressing the issue of immigration simply because of the municipal elections, scheduled for March. She said the measures would be ineffective in reining in illegal immigration.
“They’re talking about immigration because they think it’s enough to talk about immigration to the French to make them believe that solutions are being brought,” Ms. Le Pen said.
Nearly 124,000 people requested asylum in France last year, a record number and an increase of 23 percent from the previous year. The requests came mainly from Afghanistan, Syria, Sudan and France’s former African colonies, but also from Albania and Georgia, two countries that France says respect human rights.
The increase in asylum seekers has exacerbated housing problems, overwhelming shelters established by the government.
In Paris and other cities, groups of migrants, often numbering in the hundreds, have set up tent cities or are squatting in unused buildings. Nearly 3,000 are estimated to be living on the streets in northern Paris and an adjoining suburb.
The authorities have regularly expelled migrants from specific sites, leading them to move elsewhere, in a continuing cat-and-mouse game.
Those expulsions have increased with the government’s tougher line on immigration, according to advocates for the rights of immigrants.
“Since last summer, the government has been really pushing to close down these camps without offering any solution for those who find themselves on the street, said Yann Manzi, the president of Utopia 56, a group that assists migrants in Paris.
The number of asylum seekers in France has risen, migrant support groups say, as part of the continuing effects of the migrant crisis that reached a peak in 2015.
According to the European Union law governing the process, known as the Dublin Regulation, applicants must request asylum in the first country they set foot in, and remain there. But many end up moving to a second country. Those who have gravitated to France are called “Dublinés,” in reference to the law.
Nations like Italy and Greece argue that the system presents an unfair burden on them. But France, Germany and others have stepped up efforts to send migrants back where they landed.
With countries unable or unwilling to rapidly process applications, migrants have been stuck in limbo for years, or ended up wandering inside Europe, said Pierre Henry, the director of France Terre d’Asile, a migrants rights group.
“You have 200,000 to 250,000 people who are being sent back and forth in Europe like Ping-Pong balls,’’ Mr. Henry said.
Mr. Macron’s government has increasingly adopted arguments that some migrants are exploiting France’s welcome of asylum seekers, who can quickly qualify for health care and other benefits.
His government has accused some asylum seekers of engaging in what it describes as “medical tourism” by seeking treatment for serious medical conditions in French hospitals.
Mr. Macron said that reforms were necessary so that France “shouldn’t be too attractive a country” for asylum seekers.
Last year, nearly 320,000 people without legal status benefited from a government health care program reserved for them — a situation that has long angered France’s right.