Darren Williams has signed for Cardiff City and will play against his former employers Sunderland on Saturday.
Darren Williams can look to the future at Ninian Park
The full-back, 27, has been on loan at Ninian Park since September, but now joins permanently on a free transfer.
Williams would have been prevented from playing against the Black Cats under the terms of the loan deal.
The player wanted to sign a long-term deal after being told his contract at the Stadium of Light would not be renewed at the end of the season.
His three-month loan was due to expire at the end of December, but Cardiff were keen to keep Williams at Ninian Park.
"It'll be nice to go and play against Sunderland and face the lads I've played alongside for so many years," said Williams.