Dan Hurley has reached an agreement to be the next men's basketball coach at UConn, the school announced Thursday.

It's official! Dan Hurley named Head Coach of @UConnMBB. pic.twitter.com/G5ppW9fneO

— UConn Huskies (@UConnHuskies) March 22, 2018

Hurley, 45, spent the past six seasons at Rhode Island -- where he rebuilt the Rams and made each of the past two NCAA Tournaments. Sources told CBS Sports he also had an offer from Pittsburgh but took less money, via a six-year contract, to replace Kevin Ollie at UConn.

Ollie was fired on March 10.