Cal head basketball coach Cuonzo Martin is leaving Berkeley to take the same job at Missouri, according to ESPN’s Jeff Goodman.

A spate of reports on Wednesday said the Tigers had offered Martin that job, and Martin’s now officially resigned at Cal, with the school saying he’s already accepted another position. Assistant coach Wyking Jones is serving as Cal’s interim coach, while Martin heads elsewhere.

California announces that Cuonzo Martin has resigned to take a position at another school. pic.twitter.com/N6dIB6wHsd — Jeff Borzello (@jeffborzello) March 15, 2017

ESPN’s Jeff Goodman reported that Martin’s deal is a seven-year one that’s worth over $21 million.

Cuonzo Martin agrees to 7-year deal worth more than $21 million with Missouri. Story. https://t.co/VVkiniKntT — Jeff Goodman (@GoodmanESPN) March 15, 2017

Martin leaves Cal after three seasons, during which he posted a 62-39 overall record. Cal lost at home to Cal State Bakersfield in the NIT on Tuesday, in what turned out to be Martin’s last game leading the Bears.

Two of Martin’s three years in Berkeley weren’t good enough. The middle one, 2015-16, included a first-round NCAA tournament loss, but had the potential to be more.

Cal signed two five-star freshmen, Jaylen Brown and Ivan Rabb, and opened that season as the No. 14 team in the country. But the Bears struggled, and leading scorer Tyrone Wallace went down with a wrist injury that kept him out of the tournament. Cal’s first-round loss was an upset against No. 13 seed Hawaii.

Martin will apparently replace Kim Anderson, whom Missouri parted ways with after three altogether miserable seasons. Missouri has become a shell of the team it was from 2008 to 2013, when it made five Big Dances in a row under Mike Anderson and Frank Haith.

Before his time at Cal, Martin was the head coach at Tennessee for three years. He made one NCAA tournament in Knoxville after replacing the successful but embattled Bruce Pearl. Martin had to deal with the fallout of an NCAA investigation of Pearl’s program, and he got the Vols back to the tournament in his third and final year.

Martin was also the head coach at Missouri State for the three years before that, starting in 2008. He’s been spending perfect three-season intervals in all of his jobs.