In May 2012, De Rossi was named to Prandelli's final 23-man squad for UEFA Euro 2012. Due to Andrea Barzagli's pre-tournament injury, however, De Rossi played as a central defender in a three-man defence in Prandelli's 3–5–2 formation, alongside Giorgio Chiellini and Leonardo Bonucci, during Italy's opening two group matches of the competition against Spain and Croatia, which both ended in 1–1 draws, receiving praise for his performances in the media; he was temporarily replaced by Thiago Motta and Riccardo Montolivo alongside Pirlo and Marchisio in Italy's three-man midfield. He then played a more regular midfield-role against the Republic of Ireland in the last group match, partnering with Claudio Marchisio and Andrea Pirlo. He continued to play as a midfielder against England in the quarter-final, in which Italy went through after a penalty shootout victory. De Rossi also played the entire semi-final against Germany, as Italy won the match 2–1, and also played all 90 minutes in Italy's 4–0 defeat to Spain in the final. De Rossi was included in the Team of the Tournament for his performances.