Sir Cliff Richard will receive from the BBC about £2 million towards his legal costs.
The pop singer has agreed a final settlement with the broadcaster over its coverage of a police search at his home in 2014.
The judge ruled in his favour last year, awarding him £210,000 in damages.
Sir Cliff, 78, told the trial he’d spent more than £3 million defending his name.
Following the final settlement, a spokesman for the singer said he was still “substantially out of pocket”.
A statement said: “Sir Cliff incurred these costs over a five-year period as a direct result of the actions of the BBC and South Yorkshire Police.
“He is of course glad that an agreement about costs has now been reached.
“Ultimately, however, Sir Cliff is substantially out of pocket (a seven-figure sum), not least because there are costs that he has not sought to recover from the parties.”
The BBC also paid £315,000 to South Yorkshire Police for their legal costs.
A BBC spokeswoman said: “We are pleased that Sir Cliff Richard, the BBC and South Yorkshire Police have reached an amicable settlement of Sir Cliff Richard’s legal costs.
“The BBC’s costs are within the scope of our legal insurance. This brings the legal process to its conclusion.”
Sir Cliff said the BBC coverage of the police search at his Berkshire home left him “emotionally drained”, and he sued.
The police action came after a claim of historical sexual assault was made against the star.
Sir Cliff was not arrested and did not face charges.