WASHINGTON — President Joe Biden is moving to ban new offshore oil and gas drilling in most U.S. coastal waters, a last-minute effort to block possible action by the incoming Trump administration to expand offshore drilling.

Biden, whose term expires in two weeks, said he is using authority under the federal Outer Continental Shelf Lands Act to protect offshore areas along the East and West coasts, the eastern Gulf of Mexico and portions of Alaska’s Northern Bering Sea from future oil and natural gas leasing.

“My decision reflects what coastal communities, businesses and beachgoers have known for a long time: that drilling off these coasts could cause irreversible damage to places we hold dear and is unnecessary to meet our nation’s energy needs,” Biden said in a statement Monday.

“As the climate crisis continues to threaten communities across the country and we are transitioning to a clean energy economy, now is the time to protect these coasts for our children and grandchildren.”

Biden’s orders would not affect large swaths of the Gulf of Mexico, where most U.S. offshore drilling occurs, but it would protect coastlines along California, Florida and other states from future drilling.

Biden’s actions, which protect more than 625 million acres of federal waters, could be difficult for President-elect Donald Trump to unwind, since they would likely require an act of Congress to repeal. The 72-year-old law that Biden cited allows the president to withdraw portions of the outer continental shelf from mineral leasing, including leasing to drill for oil and gas, if the areas are deemed too sensitive to drill.

Trump has a complicated history on offshore drilling. He signed a memorandum in 2020 directing the Interior secretary to prohibit drilling in the waters off both Florida coasts and off the coasts of Georgia and South Carolina until 2032.

Earlier in his term, Trump had moved to vastly expand offshore drilling, but then he retreated amid widespread opposition in Florida and other coastal states.

Trump declared Monday that, after he’s inaugurated on Jan. 20, Biden’s drilling ban will “be changed on Day One.”

“I will unban it immediately,” he told conservative radio host Hugh Hewitt. “I have the right to unban it.”

He said the U.S. has “oil and gas at a level that nobody else has and we’re gonna take advantage of it. It’s really our greatest economic asset.”

Trump has vowed to establish what he calls American “energy dominance” around the world as he seeks to boost U.S. oil and gas drilling and move away from Biden’s focus on climate change.

Environmental advocates hailed Biden’s action, saying new oil and gas drilling must be sharply curtailed to reduce greenhouse gas emissions that contribute to global warming. Last year was the hottest in recorded history.

Erik Milito, president of the National Ocean Industries Association, which represents offshore drillers, called Biden’s decision “a strategic error, driven not by science or voter mandate but by political motives.’’