SAN MATEO, Calif. – Tom Martinez, the longtime personal coach to New England Patriots quarterback Tom Brady, has died. He was 67.

Brady said in a statement posted on his Facebook page Wednesday that he is “deeply saddened by the passing of my coach, mentor and friend.”

“Coach Martinez’s invaluable assistance and support will never be forgotten and will always have a lasting impact on my life,” Brady said. “The time we spent together remain some of my fondest memories. His legacy of commitment, toughness and determination will live on forever.”

Martinez worked with Brady when he was a teenager growing up in San Mateo, where Martinez coached at College of San Mateo. Their relationship continued during Brady’s NFL career.

Brady told reporters before this year’s Super Bowl that Martinez taught him how to throw a football, and he was “forever indebted” to him. He said Martinez had been seeking a kidney for some time.

“A lot of people are looking for kidneys or some different type of transplants, but he’s very deserving,” Brady said then. “He’s a great man.”

The Patriots posted to Twitter late Tuesday: “Our sincere condolences go out to the Martinez family & all those he mentored throughout his incredible career.”

Patriots wide receiver Julian Edelman also tweeted: “RIP coach Tom Martinez. He was such a great mentor to many in the bay area. His legacy will always live on.”

Martinez’s wife, Olivia, said Wednesday he died Tuesday after suffering a heart attack while receiving dialysis. She said that her husband leaves behind three adult children and their spouses and six grandchildren as well as an indelible impact on hundreds of young athletes from across the country.

“Tom had a very, very unique way of communicating with his athletes that resulted in a bond that was very special,” she said. “First and foremost, he was a teacher, then a coach. His approach made the complex easy to understand. He truly was a master teacher in that respect.”

She said her husband reveled in helping young people while they were still defining who they were and in playing a small role in their maturation.

“He loved looking at them complete tasks that they hadn’t been able to do before,” she said. “They motivated him, and frankly, I’m convinced that kept him alive much longer than expected.

“I feel such a sense of loss, not only for our entire family, but for the kids who he coached and mentored and their families as well.”

Martinez was hired at College of San Mateo to coach football and teach physical education but added softball and women’s basketball to his coaching load.

His teams won 32 championships. He had 400 career wins in football, a state record 565 wins in basketball and 800 wins in softball over 32 years, the Daily Journal reported.

A memorial service for Martinez is scheduled today at Menlo Park Presbyterian Church.