JUPITER, FLA. -- U.S. President Donald Trump expanded a ban on new offshore drilling Tuesday, an election-year reversal likely to appeal to voters in Florida and other coastal states. Two years ago, Trump had taken steps to vastly expand offshore drilling from coast to coast.

"This protects your beautiful gulf and your beautiful ocean, and it will for a long time to come," Trump said as he announced the expanded drilling ban during an appearance at the Jupiter Inlet Lighthouse.

The president signed a memorandum instructing the interior secretary to prohibit drilling in the waters off both Florida coasts, and off the coasts of Georgia and South Carolina for a period of 10 years -- from July 1, 2022, to June 20, 2032.

The existing moratorium covers the Gulf of Mexico, and Trump said the new one would also cover the Atlantic coast -- a significant political concern in coastal states like Florida.

Trump used the event to portray himself as an environmental steward and contrast his record against that of Democrat Joe Biden. But the Trump administration has overturned or weakened numerous regulations meant to protect air and water quality and lands essential for imperiled species.

The trip comes as Trump steps up his travel to battleground states eight week before the election. From Florida, he headed for a campaign rally in North Carolina, another must-win for his reelection, before returning to the White House late Tuesday.

Trump used the taxpayer-funded event to lambaste his opponent with claims that Biden would "destroy America's middle class" and give a "free pass to the world's worst foreign polluters."

Biden has called for eliminating carbon emissions from power plants by 2035 and modernizing the electric grid. Both moves would curtail fossil fuel demand. His plan also includes significant direct public spending and tax subsidies for other energy sources, which Biden's campaign says would spur new jobs even as traditional energy jobs wane.

Biden calls out China as the world's biggest coal polluter and says he'd hinge all future trade deals with Beijing on carbon reductions. He supports an international alliance to help other nations afford low-carbon development and pitches a global moratorium on Arctic offshore drilling.

The announcement could open Trump to charges of an election-year flip-flop given that in January 2018 he acted to vastly expand offshore drilling from the Atlantic to the Arctic oceans and he has supported efforts to boost American energy production to lessen reliance on foreign sources.

Biden accused Trump of "conveniently" changing his mind.

"Just months ago, Donald Trump was planning to allow oil and gas drilling off the coast of Florida," Biden tweeted. "Now, with 56 days until the election, he conveniently says that he changed his mind. Unbelievable. You don't have to guess where I stand: I oppose new offshore drilling."

Trump offered himself as the greatest environmental president since Theodore Roosevelt.

"Who would have thought? Trump is the great environmentalist," the president said. "You hear that? That's good, and I am. I am. I believe strongly in it."

But Trump has rolled back numerous regulations designed to protect the environment, from power plant emissions to auto fuel standards to clean water. He withdrew the U.S. from the Paris Climate Accord, a global agreement to address the emission of heat-trapping greenhouse gases.

The environment has also been the primary target of Trump's push to eliminate regulations, eliminating or weakening dozens of rules that protect the air and water, along with lands essential for imperiled species while reversing Obama-era initiatives to fight climate change.

Trump replaced Obama's Clean Power Plan aimed at slashing greenhouse gas pollution from electric plants and eased automobile fuel economy standards. Under Trump, the Environmental Protection Agency stripped federal protection from millions of acres of streams and wetlands. He lifted restrictions on oil and gas exploration in sensitive areas and shortened environmental reviews of construction projects such as highways and pipelines.

South Carolina Gov. Henry McMaster, a longtime Trump ally who has opposed the administration's drilling exploration expansion plans, applauded Tuesday's announcement as "good news" but warned "we must remain vigilant in the conservation and preservation of our coastline."

Trump said he had also been discussing the moratorium with Florida Gov. Ron DeSantis, who greeted Trump at the airport in West Palm Beach and attended the Jupiter event.

"This protects your beautiful gulf and your beautiful ocean, and it will for a long time to come," Trump said about the ban to an audience of about 200 people, including federal and state officials and members of Congress. Few wore face coverings or practiced social distancing.

Jaclyn Lopez, Florida director for the Center for Biological Diversity Action Fund, said Floridians will remember it was Trump who previously proposed opening the state to drilling in the first place.

"Voters shouldn't be duped by this cheap, last-minute manoeuvr," Lopez said in an emailed statement. "It can't even begin to make up for the aggressive efforts to expand dirty offshore drilling since Trump's been in office."

Energy industry groups expressed said the decision was the "wrong approach" for the times.

"Offshore access is critical for growing U.S. energy leadership and providing affordable energy for American families," said Lem Smith, vice-president of upstream policy at the American Petroleum Institute, in an emailed statement. The ban "puts at risk hundreds of thousands of new jobs, U.S. energy security advancements and billions of dollars in critical revenue for states," he added.

Environmental groups and former EPA chiefs from both parties have criticized Trump's environmental record. Current EPA Administrator Andrew Wheeler, a former coal lobbyist, defended it last week in a speech commemorating the agency's 50th anniversary. He contended Trump had reined in an agency that had lost sight of its core mission. A second term would bring more cleanups of Superfund toxic waste dumps and restoration of polluted industrial sites, which drew renewed emphasis during Trump's first term, Wheeler said.

------

Superville reported from Washington. Associated Press writer John Flesher in Traverse City, Michigan, Meg Kinnard in Charleston, South, Kevin Freking in Washington and Cathy Bussewitz in New York contributed to this report.