Montana women's basketball coach Robin Selvig retires

FILE - This March 19, 2005 file photo Montana head coach Robin Selvig adjusts his glasses as he talks to his team during a time-out in the first half against Vanderbilt at Bank of America Arena in Seattle. Montana's legendary women's basketball coach Selvig has yelled at his last referee, called his last time-out and confounded his last opponent. Selvig, who turns 64 next month, announced his retirement Wednesday, July 27, 2016 after 38 seasons and an 865-286 record. (AP Photo/Ron Wurzer,File)

MISSOULA, Mont. (AP) Long time Montana women's basketball coach Robin Selvig announced his retirement Wednesday.

Selvig, who turns 64 next month, announced his decision on the university's website and said he will be at the school until the end of August.

He coached at Montana for 38 years and won 865 games – tied for seventh on the Division I career list. Selvig built the Lady Griz into one of the better mid-major programs in the country. They had 36 winning seasons under him, including appearing in the NCAA Tournament 21 times.

''Over 38 years, there weren't many days It wasn't excited to come to work, but I've started to lose that excitement,'' Selvig said in the release. ''The players have always given me their best. When you wear down a little, you start to wonder: Can I still give them my best?''

The Lady Griz were 20-11 last season.

The Big Sky Conference school will hold a press conference Thursday.

Selvig was a star player for Montana, playing his final three seasons under coach Jud Heathcote.