He wasn’t giving up his dough without a fight.

A pizza delivery worker in North Carolina shot three goons who he says tried to rob him while he was on the job, according to a report.

The chaotic incident unfolded late Monday outside an apartment complex in the city of Charlotte, WSOC-TV reported.

Police say the delivery guy was dropping off pizza to the building when he was ambushed by four people — who allegedly aimed what he believed to be a rifle at his head, according to the outlet.

But the pie courier pulled out his own pistol and opened fire, striking three of them.

The suspects included a 15-year-old boy and a 16-year-old boy, along with 18-year-old Toybyus Banks and 20-year-old Nemiah McInnis. All four fled following the shooting, and the delivery guy called 911, according to the news outlet.

Police eventually caught up with the alleged bandits and arrested them on robbery charges.

The three who were shot suffered non-life-threatening injuries, according to the report.

At the scene of the crime, investigators found an assault-style rifle believed to have been used in the attempted robbery — but they determined that it was a toy, WSOC-TV reported.