Dan Costigan has resigned as boys’ basketball coach at Cheverus High after three seasons.

Costigan, who replaced legendary coach Bob Brown in 2012, had a 27-31 record in three seasons, leading the Stags to the Western Class A quarterfinals the last two years.

Costigan will continue to teach English at the school.

“For 30 years I’ve been coaching,” said Costigan, 51. “And you always wonder when it’s time. But you know when it is and it was just time. I feel really good about the decision.

“I think that the programs is in good shape, the kids are great, they have a lot of good young talent. For me, it just felt right.”

Athletic Director Gary Hoyt said Costigan will remain part of the athletic department.

“I am sure I will end up in a gym some way, somewhere,” said Costigan. “But I’ve called my last timeout.”

Costigan, a 1982 graduate of Cheverus, led the Stags to back-to-back Class A basketball state titles in 1981 and ’82. He also coached at Scarborough High and the University of Southern Maine, and was an assistant under Brown for eight years prior to becoming head coach.

“It’s a personal loss for me as well as a professional loss for the school,” said Hoyt. “I judge him to be a superior coach, one of the select group of great coaches in Maine.

“In my 35 years, Dan was one of the absolute best coaches I’ve had contact with.”

Hoyt said the search for a new coach will begin shortly.