WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
02:30
McCabe denies he misled investigators
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:11
Who is Andrew McCabe?
Dana J. Boente (R), U.S. Attorney for the Eastern District of Virginia, and Andrew G. McCabe (L), Assistant Director in Charge of the FBI's Washington Field Office, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
PHOTO: Mark Wilson/Getty Images
Dana J. Boente (R), U.S. Attorney for the Eastern District of Virginia, and Andrew G. McCabe (L), Assistant Director in Charge of the FBI's Washington Field Office, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:31
NYT: McCabe wrote secret memo detailing Comey firing
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.  (Photo by Pete Marovich/Getty Images)
PHOTO: Pete Marovich/Getty Images North America/Getty Images
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey. (Photo by Pete Marovich/Getty Images)
Now playing
02:01
Report cites lack of candor by Andrew McCabe
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:57
Justice IG submits criminal referral on McCabe
WASHINGTON, DC - JULY 13:  Acting FBI Director Andrew McCabe listens during a news conference to announce significant law enforcement actions July 13, 2017 at the Justice Department in Washington, DC. Attorney General Jeff Sessions held the news conference to announce the 2017 health care fraud takedown.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - JULY 13: Acting FBI Director Andrew McCabe listens during a news conference to announce significant law enforcement actions July 13, 2017 at the Justice Department in Washington, DC. Attorney General Jeff Sessions held the news conference to announce the 2017 health care fraud takedown. (Photo by Alex Wong/Getty Images)
Now playing
00:58
Flake on McCabe firing: Horrible day for democracy
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L),U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
PHOTO: Mark Wilson/Getty Images/FILE
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L),U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:28
Could congressman's offer save McCabe's pension?
WASHINGTON, DC - MAY 23: Former Director of the U.S. Central Intelligence Agency (CIA) John Brennan testifies before the House Permanent Select Committee on Intelligence on Capitol Hill, May 23, 2017 in Washington, DC. Brennan is discussing the extent of Russia's meddling in the 2016 U.S. presidential election and possible ties to the campaign of President Donald Trump. (Photo by Drew Angerer/Getty Images)
PHOTO: Drew Angerer/Getty Images
WASHINGTON, DC - MAY 23: Former Director of the U.S. Central Intelligence Agency (CIA) John Brennan testifies before the House Permanent Select Committee on Intelligence on Capitol Hill, May 23, 2017 in Washington, DC. Brennan is discussing the extent of Russia's meddling in the 2016 U.S. presidential election and possible ties to the campaign of President Donald Trump. (Photo by Drew Angerer/Getty Images)
Now playing
01:40
Ex-CIA chief to Trump: US will triumph over you
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
PHOTO: Pete Marovich/Getty Images North America
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Now playing
01:06
Journalist: The real reason Trump wanted McCabe fired
douglas brinkley ctn
douglas brinkley ctn
Now playing
02:07
Historian: This is 'Friday Night Slaughter'
PHOTO: Getty Images/Chris Kleponis-Pool/Chip Somodevilla
Now playing
01:57
Trump celebrates McCabe firing on Twitter
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
PHOTO: JIM WATSON/AFP/Getty Images
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
Now playing
01:25
Sessions fires FBI's Andrew McCabe
WASHINGTON, DC - MAY 11:  Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images
WASHINGTON, DC - MAY 11: Acting FBI Director Andrew McCabe testifies before the Senate Intelligence Committee with the other heads of the U.S. intelligence agencies in the Hart Senate Office Building on Capitol Hill May 11, 2017 in Washington, DC. The intelligence officials were questioned by the committee during the annual hearing about world wide threats to United States' security. (Photo by Alex Wong/Getty Images)
Now playing
01:57
McCabe learned he was fired from media reports
ALEXANDRIA, VA - JUNE 11:  Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L), U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS.  (Photo by Mark Wilson/Getty Images)
PHOTO: Mark Wilson/Getty Images/FILE
ALEXANDRIA, VA - JUNE 11: Andrew G. McCabe (R), Assistant Director of the FBI's Washington Field Office speaks while flanked by Dana J. Boente (L), U.S. Attorney for the Eastern District of Virginia, after a hearing in federal court June 11, 2015 in Alexandria, Virginia. Officials announced that earlier today 17-year-old Virginia high school student Ali Shukri Amin pleaded guilty to helping a classmate travel to Syria in hopes of joining ISIS. (Photo by Mark Wilson/Getty Images)
Now playing
02:52
Conservative media: McCabe part of 'deep state'
WASHINGTON, DC - JUNE 21:  Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
PHOTO: Pete Marovich/Getty Images North America
WASHINGTON, DC - JUNE 21: Acting FBI Director Andrew McCabe testifies before a House Appropriations subcommittee meeting on the FBI's budget requests for FY2018 on June 21, 2017 in Washington, DC. McCabe became acting director in May, following President Trump's dismissal of James Comey.
Now playing
01:04
FBI deputy director McCabe stepping down
(CNN) —  

Former FBI Deputy Director Andrew McCabe is writing a book detailing his career in the FBI and his experience with President Donald Trump.

The book, titled, “The Threat: How the FBI Protects America in the Age of Terror and Trump,” will share what a news release from publisher St. Martin’s Press called “a candid account of [McCabe’s] career and an impassioned defense of the FBI’s agents, integrity, and independence in protecting America.”

“I wrote this book because the president’s attacks on me symbolize his destructive effect on the country as a whole.” McCabe said in the release. “He is undermining America’s safety and security, and eroding public confidence in its institutions.”

McCabe’s tenure as FBI deputy director was marked by frequent attacks from President Donald Trump with charges that he was biased in favor of Trump’s former Democratic rival, Hillary Clinton.

Dating back to the 2016 presidential campaign trail, Trump continually pointed to donations to the Virginia state Senate campaign of McCabe’s wife, Dr. Jill McCabe, from a political action committee of Democratic then-Virginia Gov. Terry McAuliffe as an example of Clinton, who is close friends with McCauliffe, attempting to sway the FBI’s investigation into her handling of classified information, despite the fact that those donations came before Andrew McCabe took over as FBI deputy director and would have had any oversight of the Clinton email investigation.

In an interview with CNN, McCabe confirmed that Trump also asked him who he voted for the day after Trump fired then-FBI Director James Comey and McCabe stepped in as interim FBI director in May 2017, and appeared fixed on his wife’s failed campaign.

McCabe’s firing stemmed from a Department of Justice report that the former FBI No. 2 official misled Justice Department officials about his authorization of leaks to The Wall Street Journal about the FBI’s investigation into the Clinton Foundation. While McCabe denied misleading investigators, he was fired in March less than two days before his 50th birthday, when he planned to retire and could start collecting early retirement benefits.

In the hours after McCabe was ousted by Attorney General Jeff Sessions, Trump tweeted, “Andrew McCabe FIRED, a great day for the hard working men and women of the FBI - A great day for Democracy. Sanctimonious James Comey was his boss and made McCabe look like a choirboy. He knew all about the lies and corruption going on at the highest levels of the FBI!”

McCabe responded to his firing by calling it “part of this Administration’s ongoing war on the FBI and the efforts of the Special Counsel investigation, which continue to this day.” He has also disputed the findings of the Justice Department inspector general, telling CNN, “I absolutely never misled the inspector general in any way.”

McCabe’s book, set for release December 4, will join a list of other titles from former Trump administration officials documenting their experiences working for the President.

Former FBI Director James Comey, who McCabe worked under, released his own memoir, “A Higher Loyalty,” in April 2017. The book saw significant sales despite partisan criticism, including tweets from the President criticizing Comey and his book.

CNN’s Laura Jarrett contributed to this report.