Gary Barlow is to take a guest role in Miranda Hart's TV sitcom - as the new man who sets her heart aflutter.
The Take That star, 41, has a one-off role in the BBC One series which returns next month.
X Factor judge Gary has already filmed his scenes for the Bafta-winning show.
The pair worked together in the summer when they were involved in the Queen's Diamond Jubilee celebrations at Buckingham Palace.
A BBC spokeswoman said: "Gary appears in one episode of the programme. They get friendly in an unexpected way."
The programme is unlikely to go up against Gary's ITV1 talent contest as the episode is expected to be screened early in the new year.
Busy Gary is about to embark on a solo tour this month, while The X Factor is still going on. And on Monday he is due to collect the Music Industry Trusts Award at a gala dinner.