Updated

A California high school teacher and coach has died after a freak accident in which he was impaled by a parking lot gate while riding his bicycle.

Marion Adams, Rio Linda High School’s multimedia teacher and track and field coach, was heading home from a practice Monday night when the accident occurred, the Sacramento Bee reports. He turned around while riding his bike to say goodbye to a student when he hit into the metal gate.

Adams died early Tuesday, despite surviving two surgeries to treat internal wounds.

"Marion was the most popular and nicest man on campus; just a great guy," Mike Morris, the school’s varsity football team coach and athletic director, told the Sacramento Bee. "It's a huge loss, devastating to our community.”

Hundreds attended a vigil held for Adams on Tuesday night, CBS 13 reports.

Click for more from the Sacramento Bee.