Three-year-old twin boys drowned in a backyard pool Wednesday morning in Melville despite the desperate efforts of their mother and emergency responders, officials said.

Suffolk County police identified the boys as Nicholas and Anthony Aurilia of Holly Court.

Det. Lt. Kevin Beyrer, commanding officer of the homicide squad, said the boys’ mother woke up at about 8:40 a.m., looked out a window and saw Nicholas floating in the pool.

She ran outside, pulled the child from the pool and — while calling 911 on speakerphone — began CPR, Beyrer said.

“She relays to the responding officers and rescue personnel that she’s got another son, that she doesn’t know where he is,” Beyrer said. “Rescue personnel, police officers and eventually her, jump in the pool and find the other boy.”

Officials said 3-year-old twin boys were found unresponsive in the pool at their family's Melville home early Wednesday, July 26, 2017, and later pronounced dead. This photo was taken after the boys were taken to the hospital. Photo Credit: WABC

Anthony was found on the bottom of the pool, which was filled with “murky” water, police said.

advertisement | advertise on newsday

Assistant Chief David Kaplan of the Melville Fire Department said firefighters arrived two minutes after the 911 call and that four of them were among those who jumped into the pool.

Both boys were pronounced dead at Plainview Hospital.

“The hospital worked feverishly for a different outcome, but it was not to be today,” Andrea Mineo, a hospital spokeswoman said shortly before noon.

Family members could not be reached for comment.

It’s unclear, Beyrer said, how the children got out of the house and into the backyard.

“This appears to be a tragic accident,” he said.

Beyrer said the family apparently moved into the home recently, and the children’s father had left for work before the pool accident. The family also has a 5-year-old son.

Huntington Town spokesman A.J. Carter said Wednesday that the pool “met all code requirements” based on an inspection done on May 11.

The homeowners were issued a pool permit and certificate of occupancy on June 23, Carter said.

Town code requires at least a 4-foot-high fence or building around the pool, as well as alarms on any doors leading to the pool area, which aerial photos show was bordered by the home on one side.

advertisement | advertise on newsday

The issuance of the permit and occupancy certificate indicates the property met those requirements, Carter said. It was unclear whether the alarms were functioning at the time of the accident.

The family moved to Melville from an apartment building in Flushing, Queens.

Laura Alvarez, 47, of Amityville, who was working as a baby-sitter at another Holly Court home Wednesday morning, said she heard about the drownings and saw police on the street.

“I’m feeling very bad,” said Alvarez, as she hugged one of her young charges in the home’s doorway. “I have a son.”

With Joan Gralla, Lisa Irizarry, Mark Morales and William Murphy