PHOENIX (AP) 鈥 Arizona will take down a makeshift wall made of shipping containers at the Mexico border, settling a lawsuit and political tussle with the U.S. government over trespassing on federal lands.

The Biden administration and the Republican governor entered into an agreement that Arizona will cease installing the containers in the Coronado 春色直播 Forest 鈥 the only national forest along the border 鈥 according to court documents filed Wednesday in U.S. District Court in Phoenix.

The agreement also calls for Arizona to remove the containers that were already installed in the remote San Rafael Valley, in southeastern Cochise County, and in the Yuma area where the U.S. Bureau of Reclamation has an easement on the Cocopah Indian Tribe鈥檚 reservation. All this must be done by Jan. 4 without damaging any natural resources. State agencies will have to consult with U.S. Forest Service representatives.

Gov. Doug Ducey has long maintained that the shipping containers were a temporary fixture. Even before the lawsuit, he wanted the federal government to say when it would fill any remaining gaps in the permanent border wall, as it announced it would a year ago.

鈥淔or more than a year, the federal government has been touting their effort to resume construction of a permanent border barrier. Finally, after the situation on our border has turned into a full blown crisis, they鈥檝e decided to act,鈥 said C.J. Karamargin, Ducey's spokesperson. 鈥淏etter late than never.鈥

鈥淔inal details are still being worked out on how much it will cost and when it will start,鈥 he told The Associated Press.

Representatives for U.S. Customs and Border Protection did not immediately return messages seeking comment Thursday.

The resolution comes two weeks before Democrat Katie Hobbs, who opposes the construction, takes over as governor.

The federal government filed a lawsuit last week against Ducey's administration on behalf of the Bureau of Reclamation, the Department of Agriculture and the Forest Service.

The federal government 鈥渙wes it to Arizonans and all Americans to release a timeline,鈥 Ducey wrote last week, responding to news of the pending federal lawsuit.

The work placing up to 3,000 containers at a cost of $95 million was about a third complete, but protesters concerned about its impact on the environment held up work in recent days.

Meanwhile, limits on Wednesday before conservative-leaning states sought the U.S. Supreme Court鈥檚 help to keep them in place. The Biden administration has asked the court to lift the Trump-era restrictions, but not before Christmas. It鈥檚 not clear when the court might rule on the matter.

The 春色直播 Press. All rights reserved.