Matt Miller posted a 79-41 record in five years at the helm for Churchill, including an 18-6 mark in 2012-13 that included an appearance in the Maryland 4A West semifinals. (Doug Kapustin/For The Washington Post)

Churchill boys’ basketball coach Matt Miller resigned from the Potomac school Thursday and will become an assistant at Division II Shepherd University in West Virginia.

Miller, 30, had been weighing a return to college basketball the past couple of years, he said, and Shepard presents him with his third opportunity at that level. Miller, who played his high school basketball at Gonzaga, served as a student assistant at St. Mary’s College of Maryland after completing his playing career there in 2004, and later became an assistant at Marymount in 2006-07.

“After five years, I’ve just been going through reflection and thinking about where I want to go, and I just think it was a great opportunity for me,” Miller said. “Unfortunately it’s poor timing for Churchill. It was a last-minute decision. The job just briefly opened up. But really, I’ve enjoyed my time at Churchill. I’m proud of what we’ve done, of what the kids have done.”

Miller coached five seasons at Churchill, compiling a career record of 79-41, and winning three Montgomery County 4A South division titles while going 38-4 in conference play during that stretch. Miller won at least 14 games in four of his five seasons, leading Churchill to an 18-6 record last winter and an appearance in the Maryland 4A West semifinals. Miller also served as an assistant at Whitman during the 2005-06 season.

Miller, who currently teaches physical education and health at Churchill, said his first day at Shepherd will be Sept. 26. Spending the last nine years playing and coaching in the Washington area will allow him to be effective in recruiting players in the area, he said. He will serve under head coach Justin Namolik at Shepherd, which finished 15-12 last season.

As for Churchill, Miller believes the team will again be a favorite in the Maryland 4A West region this winter. He spoke to his players Thursday morning and notified them of his decision.

“I’m very confident they’ll continue to do well, especially what they have returning,” Miller said. “The [Churchill] community has come together over the past five years. We’ve been thankful to build something great there.”