More than a thousand ultranationalist demonstrators bearing Israeli flags poured into Jerusalem's flashpoint Old City on Tuesday in a march that posed a key test to Israel's new government on its second full day in office.

With tensions high amid a month-old ceasefire that ended days of deadly fighting between Israel and Gaza militants, police deployed heavily, blocking roads and firing stun grenades and foam-tipped bullets to remove Palestinians from the main route.

Medics said 33 Palestinians were wounded and police said two officers were injured and 17 people were arrested.

The demonstration triggered protests in the West Bank and Gaza Strip and prompted rebukes and warnings from Israel's allies, but ended without major incidents.

Israeli security forces disperse Palestinians protesting a march by far-right Jews into annexed east Jerusalem on April 22
Israeli security forces disperse Palestinians protesting a march by far-right Jews into annexed east Jerusalem on April 22 AFP / Ahmad GHARABLI

The so-called March of the Flags celebrates the anniversary of the city's "re-unification" after Israel captured east Jerusalem from Jordan in 1967 and annexed it, a move not recognised by most of the international community.

Tuesday's demonstration was originally scheduled for early May, but cancelled twice amid police opposition and threats from Hamas, the Islamist group that controls the Palestinian enclave of Gaza.

The demonstration centred on the Old City, which houses the Al-Aqsa mosque compound, holy to Muslims, also known as the Temple Mount, revered by Jews.

Rallies by ultranationalist Jewish groups in Jerusalem helped spark a police raid into Al-Aqsa last month that triggered the deadliest flare-up of Israeli-Palestinian violence since 2014.

On Tuesday, throngs of mostly young religious men sang, danced and waved flags at the Damascus Gate entrance to the Old City that was cleared of its usual Palestinian crowds.

Ultranationalist Israelis demonstrate outside the flashpoint Damascus Gate in Jerusalem to mark Israel's 1967 "re-unification" of the city
Ultranationalist Israelis demonstrate outside the flashpoint Damascus Gate in Jerusalem to mark Israel's 1967 "re-unification" of the city AFP / AHMAD GHARABLI

Some revellers chanted of "Death to Arabs" before others quieted them.

Student Judah Powers, 24, draped an Israeli flag over his back and said he had come to show "that we have the right as Jews, as Israelis, to walk on every single inch of this city."

Far-right lawmakers Itamar Ben-Gvir and Bezalel Smotrich attended the march, hoisted on demonstrators' shoulders.

Israel's new Prime Minister Naftali Bennett's government said organisers consulted police to route the march away from the Old City's Muslim Quarter, although demonstrators stopped at the explosive Damascus Gate before reaching the Western Wall, a holy site for Jews.

Police, with more than 2,000 reinforcements, blocked nearby streets and used foam-tipped bullets and stun grenades to disperse Palestinians. AFP reporters saw officers tackle a man and a woman for waving Palestinian flags.

Israeli security forces have been making way for an ultra-nationalist march into the Old City of Jerusalem that had been cancelled over fears it would re-ignite violence
Israeli security forces have been making way for an ultra-nationalist march into the Old City of Jerusalem that had been cancelled over fears it would re-ignite violence AFP / Ahmad GHARABLI

Police said 17 people were arrested for disturbing the peace including throwing stones and assaulting police, with two officers needing medical attention.

The Old City's usually teeming alleys were empty as shopkeepers, including Palestinian clothing store owner Sameer Asmar, 63, closed their doors.

"We are afraid even to walk" in the Old City, he told AFP, voicing doubts police could keep him safe during the march.

"I feel very bad," he said. "Jerusalem is crying."

The march comes just two days after Prime Minister Benjamin Netanyahu was ousted from 12 straight years in power, toppled by an ideologically divided coalition including, for the first time in Israel's history, an Arab party.

Some demonstrators held posters showing new Prime Minister Naftali Bennett, reading "Bennett the liar"
Some demonstrators held posters showing new Prime Minister Naftali Bennett, reading "Bennett the liar" AFP / EMMANUEL DUNAND

Bennett is himself a Jewish nationalist but Netanyahu's allies accused the new premiere of treachery for allying with Arabs and the left.

Some demonstrators on Tuesday carried signs reading "Bennett the liar".

Yair Lapid, the architect of the new government, said on Twitter that he believed the march had to be allowed but that "it's inconceivable how you can hold an Israeli flag and shout, 'Death to Arabs' at the same time."

Mansour Abbas, whose four-seat Raam Islamic party was vital to the coalition, called Tuesday's march a "provocation" that should have been cancelled.

Ahmed Tibi from the Joint List bloc of Arab opposition parties said his faction had twice asked the government to cancel the march because "the only flag legitimate (at Damascus Gate) and in east Jerusalem is the Palestinian flag."

UN Middle East peace envoy Tor Wennesland said it was a "very fragile & sensitive" time and urged all sides to avoid threatening a hard-won May 21 ceasefire that ended 11 days of heavy fighting in and around Gaza.

Palestinian demonstrators also set alight tyres and hurled rocks at Israeli security forces near checkpoints outside the cities of Bethlehem and Ramallah in the occupied West Bank.

The Israeli army said it had dispersed dozens of protesters who had gathered near the Gaza Strip's border with Israel.

Jordan's foreign ministry condemned the Jerusalem march and police enforcement as "escalating behaviour" that went against "all regional and international efforts to establish calm."

Sheikh Ahmed Al-Tayyeb at Cairo's Al-Azhar mosque called the march "cheap political Zionist propaganda."

When the march was originally announced for last week, senior Hamas official Khalil Hayya warned it could spark a return to violence.

Israeli strikes on the Gaza Strip in May killed 260 Palestinians including some fighters, the Gaza authorities said.

In Israel, 13 people were killed, including a soldier, by rockets and missiles fired from Gaza, the police and army said.

gl/kir/dac/par