A Parks officer was hospitalized while trying to make a traffic stop at Fort Tilden in the Rockaways when his all-terrain vehicle overturned Wednesday, according to law enforcement sources.

The officer’s ATV flipped as he tried to pull over dirt bikers near Fort Tilden Chapel inside the national park in Breezy Point around 2:30 p.m., police sources and FDNY officials said.

It was not immediately disclosed if the officer was a National Park Service employee or worked for New York state.

The officer was taken to a local hospital with non-life-threatening injuries, according to fire officials.

Fort Tilden is the site of a former U.S. Army installation that was established as Camp Rockaway Beach shortly after the United States entered World War I in 1917.

The area is currently listed on the National Register of Historic Places and forms part of the Gateway National Recreation Area, with a theater and hiking trails featured alongside the fort’s coastal batteries.