Wren began her journalism career at the BBC in 1999 as a producer on Newsnight.

She said: “It is a great honour and privilege to be returning to Newsnight to lead this exceptional team of award-winning and creative journalists.

“There couldn’t be a more exciting time to edit the programme that leads the way in cutting through the constant noise of political, social and global change.

“The last 12 years at Sky News could not have been better. I’ve been given the opportunities to grow and develop that have prepared me to now take on one of the best jobs in British journalism.”

Fran Unsworth, director of BBC news and current affairs, said: “Newsnight is in Esme’s DNA. It’s where she began her broadcasting career and we’re delighted to welcome her back to the BBC as its editor.

“She brings with her a wealth of TV and political expertise, and she’s worked with some of the finest names in the business.

“We are all looking forward to having Esme at the helm of one of our most important programmes.

“I’d also like to say a huge thank you to Jess Brammar and Dan Clarke, who have been editing Newsnight since Ian’s departure.”