Original sentence: After the tournament, he had his first head coaching spell at Rayo, with the club in the second level, being sacked after the tenth match of the 2003–04 campaign, which ended in relegation to division three; after working as a sports commentator, including for laSexta in the 2006 FIFA World Cup, he returned to coaching, with a side he represented in the 1980s, Real Madrid Castilla, now in the third tier.On 12 June 2018, with the team already in Russia for the tournament, it was announced that Lopetegui would take over as the head coach of Real Madrid on a three-year contract after the conclusion of Spain's involvement at the World Cup
Edited sentence: After the tournament, he had his first head coaching spell at Rayo Vallecano, with the club in the second level, being sacked after the tenth match of the 2003–04 campaign, which ended in relegation to division three; after working as a sports commentator, including for laSexta in the 2006 FIFA World Cup, he returned to coaching, with a side he represented in the 1980s, Real Madrid Castilla, now in the third tier.On 12 June 2018, with the team already in Russia for the World Cup, it was announced that Lopetegui would take over as the head coach of Real Madrid on a three-year contract after the conclusion of Spain's involvement at the tournament