Cops, firefighters and onlookers line beachfront at Beach 94 Street after a young cop assigned to the Rockaway Summer Detail pulled a drowning woman from the surf.

The rescued woman is transported to an ambulance by EMS workers.

A police officer assigned to Rockaway’s summer detail stripped off his uniform and gun and plunged into the raging surf at Beach 94 Street on Monday night, saving the life of a woman who was drowning about 50 yards off shore as well as an onlooker who tried to save her.

Police say that William Lauria, 23, an NYPD cop regularly assigned to the 105 Precinct in Jamaica, noticed the woman in distress in the water at about 7:45 p.m., nearly two hours after the lifeguards had gone off duty. Lauria was on his normal patrol along the boardwalk when the saw the unidentified Staten Island woman, 25, struggling in the water.

He told reporters later that he ran down the boardwalk, stripped down to his shorts and dove in. Lauria had been a long-time lifeguard for the Town of Hempstead, police officials said.

He was able to help the struggling woman to shore, at the same time corralling a Good Samaritan who had jumped into the surf to try and save the woman.

“The man who initially tried to save the young woman was initially swept further out that her,” Lauria said. He asked a nearby surfer to use his board to help in rescuing the man.

Lauria has been on the job for about a year and a half and comes from a family of police officers, he said.