A Staten Island man allegedly struck two city traffic agents with a pipe Tuesday morning in Manhattan, as they were writing him a ticket.

The man faces charges of felony assault and weapon possession, according to an NYPD spokesman.

The traffic agents were writing summonses about 9 a.m., when the suspect exited his black Chevy pickup and attacked the agents, police told the New York Daily News.

One of the officers was struck in the back, and the other was struck in the leg. Neither suffered serious injuries.