A white woman and her black boyfriend were berated by two bigots in Brooklyn — who hurled racial slurs and threatened to “lynch” the man — before beating him to a bloody pulp, court papers say.

The 38-year-old woman and her boyfriend had been walking near the corner of East 17th Street and Avenue R early Saturday when they were set upon by Bernard Szurant, 25, and Rudolph Evmenenko, 27, at around 5:40 a.m., according to the criminal complaint.

The couple was crossing the road and had just passed the local loudmouths in the street when the creeps decided to unleash their vicious tirade.

“This is our neighborhood you f—ing n—er! Get out of here!” the pair shouted, adding that they would “crack” the man’s skull open.

“Go back to your neighborhood!” they screamed, according to the court documents.

“We’re going to lynch you, you f–king charcoal burner!”

With the woman watching on in horror, the despicable duo jumped her boyfriend moments later — repeatedly punching him in the head, the complaint says.

He was later treated for bruising and swelling on his face, a contusion on his arm, which he got while defending himself.

At one point during the assault, her boyfriend attempted to use his cell phone to call police — but Evmeneko knocked it out of his hand and prevented him from doing so, the complaint says.

Cops eventually arrived at the scene and arrested Szurant and Evmeneko, charging them with assault, menacing, criminal mischief and harassment.