‘It was well known to Petraeus’s Personal Security Detachment (bodyguards) that he and Broadwell were having an affair. He wasn’t the only high-ranking Agency head or general engaged in extramarital relations, but when the 7th floor wanted Petraeus out, they cashed in their chips,’ Webb and Murphy write.

The book continues: ‘The reality of the situation is that high-ranking CIA officers had already discovered the affair by consulting with Petraeus’s PSD and then found a way to initiate an FBI investigation in order to create a string of evidence and an investigative trail that led to the information they already had—in other words, an official investigation that could be used to force Petraeus to resign.’

Webb and Murphy said the CIA bureaucracy wanted Petraeus out of the CIA. Senior officials were furious over the way he had been running the agency since he was appointed in September 2011.

He was turning the agency’s focus from intelligence gathering and analysis to paramilitary operations, including drone strikes.