A 41-year-old Eagan man died while competing in a Cook County trail race on Saturday.

Jon Mathson was running in the 25-kilometer Superior Spring Trail Race when he collapsed on the trail in the vicinity of Lutsen Mountains resort just before 11 a.m., the Cook County Sheriff’s Office reported Monday.

“Our hearts go out to the family of Mr. Mathson, the Superior Spring Trail Race community, and our first responders for this shocking and difficult loss,” Sheriff Pat Eliasen said in the news release.

Mathson was a three-time finisher of the race. He collapsed between Moose and Mystery mountains, the sheriff’s office reported. A group of responders, including nurses and an off-duty deputy, attempted to revive him.

The cause of death has not yet been determined, and an autopsy will be conducted, authorities said.

Race officials posted a message on the race website that noted, “We lost a member of our trail running community.” It described Mathson as a science and chemistry teacher at Eagan High School, and said he was survived by his wife, Becky, and a 2-year-old son, Dylan. A GoFundMe online fundraising campaign has been established to help the family; it had raised more than $30,000 as of Monday afternoon.

Mathson was a graduate of the University of Minnesota Duluth, according to his biography on the Eagan High School website. He had taught at the school since 2007.

Lutsen first responders, Cook County Ambulance and Cook County Search and Rescue responded to the scene.

This year’s Superior Spring Trail Races - 25K and 50K events - drew more than 500 runners to the North Shore. The race, which starts and finishes at Caribou Highlands Resort, was first held in 2003.