An intoxicated man was pulled from the cold waters of Hyannis Harbor Sunday morning after he fell in while washing his clothes, authorities said.

Barnstable police were called around 2 a.m. for a report of a person stumbling around the docks at Hyannis Harbor while trying to do laundry in the water.

When officers arrived at the docks, they spotted a pile of laundry and a man “submerged in the harbor up to his neck while clinging to the floating pier,” police said.

The man spent several minutes yelling for help.

Officers pulled the 57-year-old Hyannis man from the water.

“The male was conscious and breathing and appeared to be heavily intoxicated,” according to police. “He told police he was trying to wash his clothes when he tumbled off the dock into the water.”

The man was taken to Cape Cod Hospital by Hyannis Rescue for treatment.