Andy Coulson's relationship with Rebekah Brooks went on three years longer than has previously been suggested, the hacking trial has heard.
Coulson said his affair with Brooks continued until January 2007, when he resigned as editor of the News of the World.
The court previously heard the relationship started in 1998 and stopped "soon after" before resuming until 2004, when a letter written by Brooks indicated Coulson had ended the affair.
"From 2004 it was by no means continuous but the affair did continue until around the time I left the NotW," Coulson said.
More top news
A junior doctor launches a scathing attack on Health Secretary saying: "Sc*** you Jeremy Hunt, you've picked a fight with the wrong crowd".
A British citizen was likely taken to China against his will in a 'serious breach' of a bilateral agreement with the UK, a report says.
Atheist Richard Dawkins has cancelled his Australia and New Zealand tour after suffering from a 'minor stroke', his management said.