On 25 August 2011, Barrera joined Spanish club Real Zaragoza on a season-long loan, which would reunite him with former Mexico national team manager Javier Aguirre and teammate Efraín Juárez. He scored his first La Liga goal for Zaragoza in a 2–2 draw against Villareal. After the sacking of Aguirre, and the appointment of Manolo Jiménez as new manager, Barrera was slowly relegated to the bench.
He was called up to participate in the 2011 CONCACAF Gold Cup. He scored the fourth goal in the 4–1 win against Costa Rica. On 25 June Barerra scored a brace against the United States in the final where Mexico won 4–2.