Diaz scored 41 goals in 148 appearances for Liverpool, contributing to their Premier League, two Carabao Cups, and FA Cup victories.
His sale is Liverpool's third largest in history, after Philippe Coutinho and Luis Suarez, and contributes to the club's approximately £130m in player sales this summer.