A man died Saturday after being found in the water about 2 miles from shore in Lake Michigan.

Jose Rubio, 31, was on a boat with two other people about 3:30 p.m. near Diversey Harbor, Chicago police and the Cook County medical examiner’s office said. The three of them decided to go for a swim and jumped into the Lake.

The anchor on the boat was not dropped and the boat started drifting away, police said. One man was able to swim back to the boat, while Rubio and a 28-year-old man attempted to swim back to shore.

The Chicago Fire Department’s Marine Unit was able to help the man who was able to return to the boat to get back to shore, authorities said. First responders scrambled to recover the other two swimmers, who were found unconscious and pulled from the water.

Rubio was taken to Saint Joseph Medical Center in Joliet, where he died, authorities said. He lived in Scottsdale on the Southwest Side.

The medical examiner’s office ruled his death an accident by drowning in an autopsy conducted Sunday.

The 28-year-old was taken to Illinois Masonic Medical Center and stabilized, authorities said.