In the summer of 2005, Terim became the manager of the Turkey national team for a second time, taking charge of their last three qualifying matches (held in September and October 2005) – against Denmark, Ukraine and Albania – in UEFA qualifying Group 2 of the 2006 FIFA World Cup. Turkey finished second in the group and thus advanced to the two-leg play-off against Switzerland, who won the first leg 2–0 in Bern. Turkey won the second leg 4–2 in Istanbul, but Switzerland advanced to the 2006 World Cup finals on the away goals rule.