JERUSALEM — Israel’s prime minister said thousands of Africans who have infiltrated Israel will be sent back home.

Benjamin Netanyahu declared Wednesday that Israel has halted the flow of African migrants into Israel over the past seven months. He spoke while visiting the fence Israel built on its border with Egypt to keep migrants out.

He said he will soon begin “repatriating the tens of thousands of infiltrators in Israel to their countries of origin.”

About 60,000 Africans have entered Israel in recent years, some seeking asylum and others looking for work.

Sigal Rozen, whose group assists migrants, said it’s unlikely Israel can repatriate them, since many come from conflict zones or countries that have no ties with Israel.

She said Netanyahu’s pledge could be political posturing ahead of Jan. 22 elections.