On 18 October 2017, López returned to Cagliari as head coach after the dismissal of Massimo Rastelli. At the end of the season, having avoided the drop, he left by mutual consent.