He moved to Spain's Alavés afterwards, scoring eight league goals – often as a substitute – in his first season while also being an important attacking element in the Basque side's UEFA Cup exploits, as he netted in the final against Liverpool, but ultimately lost 5–4 in extra time;[3] during his spell, he formed a formidable partnership with Javi Moreno (later of AC Milan).
[7] Benefitting from injuries and loss of form to legendary Raúl Tamudo he netted some important goals for the Catalans, including two at Almería on 23 May 2009 which guaranteed their permanence in the top division a further year.
[8] On 23 September 2009, Alonso scored in the club's first win of the 2009–10 campaign, the first ever at new Estadi Cornellà-El Prat, against Málaga (2–1), and dedicated it to Daniel Jarque, deceased in the team's preseason in Italy.
[9] He would lose his starting job following the arrival, in January 2010, of Dani Osvaldo, on loan;[10] however, on 11 April, one day after his 31st birthday, he managed to add his name to the scoresheet in Espanyol's 3–0 home victory over Atlético Madrid, having played only one minute after having replaced precisely the Argentine.
[11] In June 2011, after 11 years in Spain (amassing professional totals of 344 games and 80 goals), the 32-year-old Alonso moved countries and signed with Toluca of Mexico,[12] being the Liga MX's top scorer in his first and only season even though the team could only rank in 12th position overall.