Long Beach police rescued two men from the water who had been trapped in a rip current Saturday night, with one in critical condition, authorities said.

Long Beach lifeguards spotted a Brooklyn man in distress in the water about 6:30 p.m. in front of the Allegria Hotel and boardwalk near National Boulevard, Long Beach Police Commissioner Michael Tangney said.

Lifeguards and police pulled the man from the water and he was treated with a breathing apparatus while conscious, police said. The man said he was swimming with his friend, a 23-year-old man from Brooklyn, who went missing when waves pulled him underwater, police said.

Long Beach police, lifeguards and Nassau County aviation and Nassau County marine officers launched an extensive search for the other man. Officers on boats and watercrafts patrolled the water for about an hour until the man was found submerged, Tangney said.

Coast Guard officials said resources from the Jones Beach Station were dispatched and aircraft from Cape Cod also was sent to assist with the search.

Rescuers pulled the man -- who was still alive -- to shore and gave him CPR, police said. He was taken by ambulance to South Nassau Communities Hospital in Oceanside. Family members were notified of his critical condition, Tangney said.

The first man rescued, who was not hurt, was being questioned by police.

advertisement | advertise on newsday

Police said both men had been warned of the bad rip currents and were told to leave the water earlier in the day. But they went back into the ocean after lifeguards had left for the day, police said.

Long Beach lifeguards made several rescues because of riptides throughout the day, including minutes earlier near Edwards Boulevard, Tangney said.

"That's why it's so important to swim with lifeguards on duty," Tangney said.

A young couple from Elmont said they saw rescue workers trying to revive a young adult male.

Kaydina Dodd said, "They were still working on him right up until they loaded him in the ambulance but I'm praying that he will be fine."

Police, firefighters and off-duty lifeguards all responded, according to Dodd and Karl Louis. The rescue involved about two helicopters and three or four boats, they said.

Rescue workers said the swimmer was in the water for as long as 45 minutes.

"It's unfortunate that people don't listen,"Dodd said.

With Joan Gralla