His performances in South Africa led to suggestions other clubs might try to hijack the deal but Wigan were always confident of landing the 27-year-old.
Manager Roberto Martinez said: “It’s fantastic news that we can finally confirm the arrival of a defender who I feel was one of the very best at this summer’s World Cup.
Martinez was one of a three-strong Wigan delegation stating the case for signing the player at a Wembley hearing today.
“I am so happy that everything has gone through now,” said the World Cup quarter-finalist.
“I want to thank Roberto and the club for all the hard work to get me to Wigan and now I just want to play football.