Duke‘s Mike Krzyzewski, who is the winningest coach in Division I men’s basketball history and has led the Blue Devils to five national championships in his 41 seasons, will retire after the 2021-22 season, the university announced Wednesday.

Duke associate head coach Jon Scheyer, who played for Krzyzewski from 2006 to 2010, has been named Krzyzewski’s successor. Scheyer will spend the 2021-22 season as coach-in-waiting and will take over after that.

Krzyzewski, a Naismith Memorial Basketball Hall of Fame coach who has 1,097 career wins at Duke, has taken the Blue Devils to the Final Four on 12 occasions. He has won 12 regular-season ACC championships and 15 conference tournament titles while producing 28 NBA lottery picks — and 41 first-round selections — over the years.

Having five national titles puts him second only to former UCLA coach John Wooden, who won 10.