A Texas man faces theft and harassment charges after police report he hurled a “handful of feces” at officers who arrested him for stealing from a convenience store in Pharr.

Baltazar Mendoza Zarate, 52, allegedly stole two 20-packs and two eight-packs of beer from Stripes convenience store last Thursday, and when Pharr police arrived around 10:19 p.m. to confront him, things didn’t go so well, The Monitor reports.

Zarate yelled profanities at the officers and refused to comply with order, and “physical force was used,” according to court records.

That’s when “the defendant reached into his shorts and pulled out a handful of feces … throwing the feces at them,” police allege.

“(Officers) were hit and contaminated with the defendant’s feces,” according to the report.

Police arrested Zarate and charged him with theft, resisting arrest and two counts of harassing a public servant. A judge set his bond at $115,000, according to the news site.

The episode came just hours before U.S. Customs and Border Protection agents in the same town scuffled with dozens of illegal immigrants who attempted to storm the Pharr International Bridge and into the country, Sara Carter reports.

“At about 4 a.m. today, a group of 47 undocumented individuals attempted to illegally enter the United States in three waves via the Pharr International Bridge. Ignoring commands to stop, the group suddenly rushed the temporary barricades, bent metal poles and disabled the concertina wire affixed to the barrier,” CBP wrote in a prepared statement.

Several men in the group pushed through the barriers and attacked CBP agents on the other side, where they were met with a barrage of tear gas and pepper balls. A total of 16 were arrested and two were charged with interference, while the rest were hauled off by Mexican officials, according to the news report.

Zarate also is not the first criminal to resort to crappy behavior with authorities.

Miami-Dade Circuit Court Judge Lisa Walsh was forced to briefly delay the burglary trial of Dorleans Philidor in late June when the 33-year-old allegedly “cast feces” at the judge during the proceedings, the Miami Herald reports.

Witnesses said Philidor threw the excrement at Walsh but it did not reach her. They also alleged the career criminal shouted “It’s protein! It’s good for you!” and took a bite for himself, according to the new site.

Security evacuated the courtroom as Walsh scrambled to safety. The incident occurred in the morning, and while the courtroom was shut down to disinfect, Walsh continued Philidor’s trial undeterred in a different courtroom, where a jury ultimately found him not guilty.

The day prior, Walsh was forced to delay closing arguments because Philidor smeared himself and his holding cell near the courtroom with his feces.

Regardless, Philidor remained incarcerated after the burglary trial to face a separate grand theft auto case.

Both Philidor and Zarate face enhanced criminal penalties because of multiple prior convictions, according to news reports.