On 31 August 2021, after Valladolid's relegation, Guardiola was loaned to Rayo Vallecano in the top tier, for one year.