Brighton have agreed a £13m deal with Newcastle for central defender Dan Burn to return to his native North East.
Newcastle had targeted Burn, a boyhood Magpies fan, to bolster their defence.
The Seagulls had previously rejected a £7m bid from the Magpies for the 29-year-old, who is 6ft 7in and can play in central defence or at left-back.
A fee has now been reached, although League One side Wigan are due around 20% of the profit made from their £4m sale of the player in 2018.
Burn is a Newcastle fan, having been born in nearby Blyth and was at the Magpies as a youngster before starting his senior career with Darlington.