Israel has declared a state of emergency in the central city of Lod after rioting by Israeli Arabs, as conflict between Israeli forces and Palestinian militants intensified.
Cars were set alight and 12 people were reported injured in clashes Lod's mayor likened to a civil war.
Palestinian militants fired hundreds of rockets deep into Israel, while Israel carried out heavy airstrikes on Gaza.
At least 40 people have died in some of the worst violence in years.
Palestinian militants said they fired hundreds of missiles at the Israeli city of Tel Aviv after an Israeli air strike demolished a tower block in the Gaza Strip on Tuesday.
Israel's military says it is targeting militants in Gaza in response to rocket attacks on Jerusalem and other areas.
The fighting came after weeks of rising tensions that were stoked by violent confrontations between Israeli police and Palestinian protesters at a site in Jerusalem that is holy to both Muslims and Jews.
The international community has urged both sides to end the escalation. The UN's Middle East peace envoy, Tor Wennesland, said they were "escalating towards a full-scale war".
At least 35 Palestinians, including 10 children, and five Israelis have been killed in the violence so far, according to health officials.
What happened in Lod?
Protests by Israeli Arabs broke out in Lod, a city near Tel Aviv, and escalated to full-scale rioting, with protesters throwing rocks at police, who responded with stun grenades.
The protests followed the funeral of an Israeli Arab man who died during unrest in the city a day earlier.
At least 12 people were injured in the clashes, Israeli newspaper Haaretz reported. As night fell, the situation degenerated in Lod, police said.
Israeli media reported that synagogues and several businesses had been set on fire, while Reuters news agency said there were reports of Jews stoning a car that was being driven by an Arab resident.
On Tuesday night, Israeli Prime Minister Benjamin Netanyahu declared a state of emergency in Lod. Israeli border police have been brought in from the West Bank.
The conflict between the Israeli military and Palestinian militants in Gaza has stirred unrest among the Arab minority inside Israel, leading to protests.
There has also been unrest in other cities with a large Israeli Arab population, as well as in East Jerusalem and the West Bank.
"All of Israel should know, this is a complete loss of control," Lod Mayor Yair Revivo was quoted as saying by the Times of Israel newspaper. "Civil war has erupted in Lod."
The Times of Israel said this was the first time the government had used emergency powers over an Arab community since 1966.
Netanyahu, who went to the city to call for calm, said he would impose a curfew if necessary.
After two days of hostilities, rocket fire by Palestinian militants and air strikes by the Israeli military continued unabated on Wednesday morning.
In a tweet, Israel's military said it had struck "a number of significant terror targets" across the Gaza Strip in response to hundreds of rockets. The strikes were the biggest since 2014, it said.
A high-rise building, homes and offices used by Palestinian militant leaders in Gaza were among the targets hit by fighter jets, Israel's military said.
Meanwhile, Palestinian militant groups continued to fire rocket barrages into Israel. Loud booms and air-raid sirens were heard across targeted cities, which included Tel Aviv, Ashkelon, Modiin, and Beersheba.
For days, Palestinian militants have been launching hundreds of rockets towards Israeli cities in an apparent attempt to overwhelm missile defences.
In Lod, a rocket fired from the Gaza Strip hit a car on Wednesday, killing two people, including a child, Israeli police said.
Earlier on Tuesday, Hamas, the militant group that rules Gaza, said it had launched rockets at Tel Aviv and its suburbs in response to "the enemy's targeting of residential towers".
Video footage from the city shows rockets streaking through the night sky, some exploding as they are hit by Israeli interceptor missiles.
In the Tel Aviv suburb of Holon, a rocket hit an empty bus, Israeli police spokesman Mickey Rosenfeld told AFP news agency. A girl of five and two women, one 50 and one 30, were injured in the town.
Ben Gurion Airport briefly halted flights on Tuesday and an energy pipeline between the cities of Eilat and Ashkelon was hit.
The rockets were launched after the destruction of the Hanadi Tower in Gaza, which houses an office used by the political leadership of Hamas.
Israeli Defence Minister Benny Gantz said the Israeli strikes were "just the beginning".
"Terror organisations have been hit hard and will continue to be hit because of their decision to hit Israel," he said. "We'll return peace and quiet, for the long term."
Hamas leader Ismail Haniyeh said the group was "ready" if Israel chose to escalate.
"If [Israel] wants to escalate, we are ready for it, and if it wants to stop, we're also ready," he said in a televised address. "There is a new balance of force."
What has caused the violence?
The fighting between Israel and Hamas was triggered by days of escalating clashes between Palestinians and Israeli police at a holy hilltop compound in East Jerusalem.
The site is revered by both Muslims, who call it the Haram al-Sharif (Noble Sanctuary), and Jews, for whom it is known as the Temple Mount. Hamas demanded Israel remove police from there and the nearby predominantly Arab district of Sheikh Jarrah, where Palestinian families face eviction by Jewish settlers. Hamas launched rockets when its ultimatum went unheeded.
Palestinian anger had already been stoked by weeks of rising tension in East Jerusalem, inflamed by a series of confrontations with police since the start of the Islamic holy month of Ramadan in mid-April.
It was further fuelled by an expected court ruling on the fate of the families in Sheikh Jarrah - ultimately postponed because of the unrest - and Israel's annual celebration on Monday of its capture of East Jerusalem in the 1967 Middle East war, known as Jerusalem Day.
The fate of the city, with its deep religious and national significance to both sides, lies at the heart of the decades-old Israel-Palestinian conflict. Israel in effect annexed East Jerusalem in 1980 and considers the entire city its capital, though this is not recognised by the vast majority of other countries.
Palestinians claim the eastern half of Jerusalem as the capital of a hoped-for state of their own.
- BBC