Olof Mellberg scored twice as Sweden won their final South Africa 2010 qualifier, but events elsewhere meant their bid for qualification reached its end.
Brazil took seven points from a possible nine to win Group G, while Portugal went through as their runners-up, one point clear of Côte d’Ivoire.