Throughout Spain's UEFA Euro 2008 qualifying campaign, Ramos was a regular member of the starting eleven as the national side finished first in its group, above Sweden. He scored two goals, including one in a 3–1 away win over Denmark, in 11 appearances. In the tournament's final stages, Ramos played in all matches and minutes, except the 2–1 group stage win against Greece. In the final, his pass nearly set up Marcos Senna's first international goal, but the latter missed his opportunity by inches. During the celebrations after the 1–0 defeat of Germany, he wore a T-shirt in honour of his late friend Puerta.