A Long Island woman allegedly hurled her pee-soaked underwear and shoes at New York state troopers after they arrested her husband for drunk driving early Sunday, police said.

Troopers stopped Michael Nelson, 38, in the Town of Hempstead around 1:35 a.m. and found that he’d had one too many drinks, they said.

While cops were trying to arrest Michael, his devoted wife, Alexandra Nelson, 29, jumped out of their 2017 Mercedes-Benz and attempted to stop them.

The belligerent hubby then headbutted a trooper’s face and body multiple times, officials said.

The combative couple were taken to the East Meadow Barracks, where Alexandra threw her soiled intimates and shoes and spat on troopers, officials said.

But their attorney, Marc Gann, told The Post he didn’t think Alexandra “threw anything” and accused the cops of not letting her use the bathroom.

“I think the troopers instigated her conduct,” Gann said. “She was begging to go to the bathroom and they wouldn’t let her go to the bathroom. Unfortunately, they put her in a very embarrassing situation.”

He called the arrests “overblown and exaggerated” and said he thought the police “escalated the situation as opposed to calming the situation.”

Alexandra faces charges including attempted assault, criminal possession of a controlled substance and disorderly conduct.

Her husband was charged with DWI, criminal possession of a controlled substance and resisting arrest.

The pugnacious pair were taken to Nassau County Detention and were arraigned in First District Court on Monday. Their next court date is January 16.