(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.