Authorities are crediting the quick thinking of a Good Samaritan for saving a 7-year-old boy from drowning at the San Leandro Marina.

The boy, whose name wasn't released, was playing in the water near Marina Park when he began struggling about 4:15 p.m Sunday, police said. The boy was under water for about a minute, said Aisha Knowles, spokeswoman for the Alameda County Fire Department.

Jose Tamayo, 44, saw what was happening, went into the water and brought the unconscious boy to shore to perform CPR, authorities said. He was able to revive the boy, and paramedics took him to UCSF Benioff Children's Hospital Oakland, where he was listed in fair condition Monday.

"His doctors said he's made an amazing recovery," said hospital spokeswoman Melinda Krigel. "He was in full cardiac arrest (Sunday night), and now he's awake and talking."

Police interviewed witnesses and believe the near drowning was accidental.

"If it weren't for observant people in the park and their swift actions, the outcome ... may have been drastically different," said San Leandro police Lt. Robert McManus, who called Tamayo and others involved in the rescue "true heroes."