The partial government shutdown has been really crappy for some of the nation’s most iconic parks.

Human feces and garbage have been overflowing at the campgrounds of Yosemite and Joshua Tree national parks — because there’s no staff on hand to clean up, according to new reports.

In California, tourists have been relieving themselves on the sides of the roads because Yosemite’s restrooms and visitor centers have been shuttered since Dec. 22, when the shutdown began, the Los Angeles Times reported.

Trash collection has also been temporarily nixed — even though the park itself remains open.

The makeshift toilet situation has forced two campgrounds to close due to the “health hazard” it creates, National Parks Service spokesman Andrew Munoz told the Times.

“With restrooms closed, some visitors are opting to deposit their waste in natural areas adjacent to high traffic areas, which creates a health hazard for other visitors,” he said.

Human poop and urine were found along Wawona Road — known as California Highway 41 — in the southern part of the park, which forced the closure of the Mariposa Grove and the Wawona and Hodgson Meadows campgrounds.

Dakota Snider, who lives and works in Yosemite Valley, called the disgusting display a “free-for-all” with the shutdown now in its second week.

“It’s so heartbreaking,” the 24-year-old told the Associated Press. “There is more trash and human waste and disregard for the rules than I’ve seen in my four years living here.”

At Joshua Tree in Southern California, trash cans were spilling over and fights were breaking out among campers on the grounds, with no rangers on hand to adjudicate, according to Ethan Feltges, who runs the Coyote Corner gift shop outside the park.

He and other business owners have pitched in to empty trash, stock restrooms and haul trailers onto park grounds. Feltges also set up a portable toilet at his store for the visitors who are still streaming in and out of the park.

“The whole community has come together,” he said. “Everyone loves the park. And there’s a lot of businesses that actually need the park.”

But some parkgoers are taking advantage of the shortage of staffers to off-road illegally and relieve themselves in public at Joshua Tree.

And at Yosemite, visitors were allowing their dogs to run off-leash and leaving bags of trash along the roads, Snider said.

“You’re looking at Yosemite Falls and in front of you is plastic bottles and trash bags,” he said.

The partial government shutdown is in effect pending an impasse between Democrats and President Trump, who has demanded funding for his wall along the US-Mexico border. The shutdown has forced the furloughs of some 800,000 federal employees.

With Post wires