Manchester City goalkeeper David James has signed for Portsmouth after passing a medical and agreeing personal terms.
James has 34 England caps
City accepted Pompey's bid for James, said to be in the region of £1.2m, on Thursday and the 36-year-old has now signed a two-year deal.
James, who joined City in a £2m deal in January 2004, is believed to have wanted to be closer to his fiancee, who lives in the south of England.
He is set to take over as the number one goalkeeper at Fratton Park.
James has 34 England caps and has previously played for Watford, Liverpool, Aston Villa and West Ham.
The goalkeeper becomes manager Harry Redknapp's fourth signing of the summer after Glen Johnson, David Thompson and Sol Campbell.
"These are the kind of signings we wanted two or three weeks ago but transfer dealings don't go that way," said Pompey coach Joe Jordan.
"The main thing is getting them in as soon as we can."
Manchester City manager Stuart Pearce has now made finding a replacement a priority ahead of the new season.
Nicky Weaver, Kasper Schmeichel and Joe Hart, a £600,000 summer signing from Shrewsbury, are presently at the club.
But City are interested in Rennes' Swedish keeper Andreas Isaksson and Liverpool's Jerzy Dudek.