JERUSALEM — On the final day of his re-election campaign, Benjamin Netanyahu said that as long as he serves as prime minister of Israel, there will not be an independent Palestinian nation.

His declaration marks the second time in a month that Netanyahu has chosen to confront Washington directly: first by opposing, in a speech before Congress, President Obama’s possible deal to try to curtail Iran’s nuclear ambitions and now by opposing a two-state solution to the Israeli-Palestinian conflict, which Secretary of State John Kerry spent nine months pursuing.

Netanyahu’s assertion, made on camera to an Israeli news website, appeared to reverse the prime minister’s previous declarations of support for a sovereign Palestinian state.

“I think that anyone who is going to establish a Palestinian state today and evacuate lands is giving attack grounds to the radical Islam against the state of Israel,” he said in a video interview published Monday on the NRG site.

“Anyone who ignores this is sticking his head in the sand. The left does this time and time again,” Netanyahu said. “We are realistic and understand.”

Netanyahu was then asked specifically whether he meant that a Palestinian state would not be established if he were reelected prime minister. He answered, “Correct.”

For the past five days, Netanyahu has been working to bulk up support among members of his nationalist right-wing base, warning Israelis that his challengers would “give away land for peace” to the Palestinians, would divide the “eternal capital of Israel” and would turn over the eastern sections to the Palestinians for a future state.

The last public polls before the election, released Friday, showed Netanyahu’s conservative Likud Party trailing by four parliamentary seats behind the center-left Zionist Union alliance headed by Isaac Herzog and Tzipi Livni, according to McClatchy Newspapers.

Polls predict that Likud will take 20 to 22 parliamentary seats, compared with 24 to 26 for the Zionist Union. But under Israel’s election system, Netanyahu still might be able to form a majority coalition in the 120-seat legislature with the support of rightist and ultra-Orthodox factions who’ve been his traditional allies.

Late Monday night, it was announced that Livni had given up an agreement to rotate the prime minister post with Herzog if their alliance wins. It was widely thought that the unusual arrangement was driving away voters, The Associated Press reported.

SIGNALING A POLICY CHANGE?

In a speech at Bar-Ilan University in 2009, Netanyahu famously said that he supported a two-state solution to end the Israeli-Palestinian conflict, as long as Israeli conditions were met and Israel’s security was guaranteed. That speech and two rounds of U.S.-brokered peace talks since then led many to assume that the prime minister was prepared to see a Palestinian state arise in the West Bank and Gaza Strip.

On Monday, Americans and Israelis were left unsure whether Netanyahu was just speaking off the cuff during an interview in the heat of a very close race or whether he was signaling a real change in policy.

State Department spokeswoman Jen Psaki declined to comment except to say, “There are many things said leading up to elections.” She added: “Obviously, our view continues to be that the only way to have peace and stability in the region is for there to be a two-state solution.”

Erel Margalit, an opposition leader in the Labor Party, called Netanyahu’s statements “outrageous.”

“It undermines the direction that Israel has declared it is striving for during the last three prime ministers,” Margalit told The Washington Post. “We need to build trust with the Palestinians again and make sure they do not continue with their unilateral steps.”

Saeb Erekat, who was the chief Palestinian negotiator during Kerry’s peace talks, said he was not surprised to hear the remarks. “Netanyahu has done everything possible to bury the two-state solution,” he said. “This is not something new to us.”

Netanyahu’s words hit the Internet soon after the prime minister visited a Jewish settlement in East Jerusalem on Monday and warned that if it were not for him and his right-wing Likud party, residents there would be next-door neighbors with the Islamist militant movement Hamas.

At a news conference at which journalists were not allowed to ask questions, Netanyahu stood at a lectern on the terrace of Yaron and Sigal Hakoshrein’s new condominium.

Netanyahu called his host to stand beside him and asked on camera, “Do you want to see Hamastan over there on that mountaintop?”

Yaron Hakoshrein, a Likud activist, shook his head and said no.

“Then there is only one answer. Then you have to put the voting slip for Likud in the ballot box,” Netanyahu said.

Israelis who fear that Hamas will take over the West Bank, as it did the Gaza Strip in 2007, have adopted the shorthand “Hamastan” to express that concern. Hamas is branded a terrorist organization by Israel and the United States. Israel and Hamas fought a 50-day war last summer.

Netanyahu has vowed “no concessions” and “no withdrawals” from the West Bank in speeches and statements during the campaign.

PAST SUPPORT ‘NOT RELEVANT’

Over the past quarter-century, Israel and the Palestinians have engaged in many talks that failed to bear fruit. Kerry’s attempt collapsed last April, with each side blaming the other.

In a statement issued by his Likud party a week ago, Netanyahu was quoted as saying that his past support for an independent Palestinian state is now irrelevant.

“In the Mideast today, any evacuated territory will be overtaken by radical Islam and terror groups backed by Iran. Therefore, there will be no withdrawals and no concessions. It’s just not relevant,” the statement read, attributing the remark to Netanyahu.

Afterward, Netanyahu’s spokesman attempted to clarify matters by stating that the prime minister meant to say that “under current conditions in the Middle East, any land that is handed over would be grabbed by Islamist extremists.”