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. (Photo by Pete Marovich/Getty Images)
PHOTO: Pete Marovich/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. (Photo by Pete Marovich/Getty Images)
Now playing
01:52
Andrew McCabe sues FBI and DOJ over firing
Goya Foods President Robert Unanue speaks at a press conference with Carlos Vecchio, the Venezuelan Ambassador who is recognized by the United States on December 21, 2020 in Doral, Florida. The two held the press conference to discuss details of a recent shipment of humanitarian aid to Venezuela, donated by Goya Foods. (Photo by Joe Raedle/Getty Images)
PHOTO: Joe Raedle/Getty Images
Goya Foods President Robert Unanue speaks at a press conference with Carlos Vecchio, the Venezuelan Ambassador who is recognized by the United States on December 21, 2020 in Doral, Florida. The two held the press conference to discuss details of a recent shipment of humanitarian aid to Venezuela, donated by Goya Foods. (Photo by Joe Raedle/Getty Images)
Now playing
03:24
Goya CEO under fire for false Trump election claims
Kinzinger
PHOTO: CNN
Kinzinger
Now playing
03:55
Republican lawmaker reacts to being on Trump's 'enemies list'
Former Ambassador to the United Nations Nikki Haley speaks during the first day of the Republican convention at the Mellon auditorium on August 24, 2020 in Washington, DC (Photo by Olivier DOULIERY / AFP) (Photo by OLIVIER DOULIERY/AFP via Getty Images)
PHOTO: Olivier Douliery/AFP/Getty Images
Former Ambassador to the United Nations Nikki Haley speaks during the first day of the Republican convention at the Mellon auditorium on August 24, 2020 in Washington, DC (Photo by Olivier DOULIERY / AFP) (Photo by OLIVIER DOULIERY/AFP via Getty Images)
Now playing
04:41
Haley flip flops on Trump, praising his 'strong speech'
ORLANDO, FLORIDA - FEBRUARY 26: Rep. Madison Cawthorn (R-NC) addresses the Conservative Political Action Conference being held in the Hyatt Regency on February 26, 2021 in Orlando, Florida. Begun in 1974, CPAC brings together conservative organizations, activists, and world leaders to discuss issues important to them. (Photo by Joe Raedle/Getty Images)
PHOTO: Joe Raedle/Getty Images
ORLANDO, FLORIDA - FEBRUARY 26: Rep. Madison Cawthorn (R-NC) addresses the Conservative Political Action Conference being held in the Hyatt Regency on February 26, 2021 in Orlando, Florida. Begun in 1974, CPAC brings together conservative organizations, activists, and world leaders to discuss issues important to them. (Photo by Joe Raedle/Getty Images)
Now playing
04:12
Women allege sexual misconduct against North Carolina GOP lawmaker
trump investigators murray dnt 03012021
PHOTO: CNN
trump investigators murray dnt 03012021
Now playing
02:56
Five elected investigators are turning their attention to Trump
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
PHOTO: Seth Wenig/Pool/AP
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
Now playing
04:18
Gov. Cuomo accuser says he hasn't taken responsibility for his actions
Now playing
03:12
Avlon on CPAC: It was a hyperpartisan temper tantrum
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
PHOTO: Seth Wenig/Pool/AP
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
Now playing
02:26
Haberman: This is the first time I can remember Cuomo apologizing
Now playing
02:11
'Sad': Kinzinger blasts Hawley's CPAC remarks
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
PHOTO: Seth Wenig/Pool/AP
New York Gov. Andrew Cuomo speaks during a news conference at a COVID-19 vaccination site in the Brooklyn borough of New York, Monday, Feb. 22, 2021. (AP Photo/Seth Wenig, Pool)
Now playing
01:12
Gov. Andrew Cuomo responds to allegations of sexual harassment
 Psaki biden White House Khashoggi Saudi Arabia sotu bash vpx _00011629.png
PHOTO: CNN
Psaki biden White House Khashoggi Saudi Arabia sotu bash vpx _00011629.png
Now playing
03:42
Bash to Psaki: Why hasn't Saudi Arabia been held accountable for murder of Khashoggi?
Speaker of the Virginia House of Delegates Eileen Filler-Corn (D-Fairfax) speaks during opening ceremonies of the 2020 Virginia General Assembly at the Virginia State Capitol on January 8, 2020 in Richmond, Virginia.
PHOTO: Zach Gibson/Getty Images
Speaker of the Virginia House of Delegates Eileen Filler-Corn (D-Fairfax) speaks during opening ceremonies of the 2020 Virginia General Assembly at the Virginia State Capitol on January 8, 2020 in Richmond, Virginia.
Now playing
04:26
Virginia's political shift from red to purple to blue
senator bill cassidy sotu bash vpx _00002611.png
senator bill cassidy sotu bash vpx _00002611.png
Now playing
01:42
GOP senator: If we continue to idolize one person, we will lose
Now playing
01:27
Kristi Noem gets standing ovation for Dr. Fauci dig at CPAC
House Speaker Nancy Pelosi
PHOTO: House TV
House Speaker Nancy Pelosi
Now playing
02:52
House passes Biden's $1.9 trillion Covid-19 relief package
(CNN) —  

Former acting FBI Director Andrew McCabe is suing the Justice Department and FBI over his firing last spring and accusing President Donald Trump of politically retaliating against him.

McCabe is asking a federal court in Washington to reinstate him as deputy director of the FBI so he can earn a full pension, which he was deprived of by being fired. He said Trump had “constitutionally improper motives for removing” him from government service.

He was dismissed hours before his retirement date following a report from the Justice Department’s inspector general that concluded he improperly disclosed information to the media and lacked candor in interviews with federal investigators. McCabe, who worked for the FBI for two decades and was a senior leader in 2016 through 2018, including after FBI Director James Comey’s firing and the early days of the Mueller investigation, had become a target of Trump’s heckling on Twitter.

Trump had torn into McCabe’s wife’s Democratic political ties after she had run for state senate in Virginia in 2015. McCabe and his wife have maintained that some of Trump’s accusations, especially about McCabe being ethically compromised by donations to her campaign, were false.

McCabe accuses Trump of threatening several top brass of the Justice Department – from former Deputy Attorney General Rod Rosenstein, to inspector general Michael Horowitz, to then-attorney general Jeff Sessions – as a way to “induce their compliance with Trump’s desires,” the lawsuit says.

A fired FBI agent who had worked on the Russia investigation, Peter Strzok, also sued the Justice Department earlier this week over his own termination, saying Trump had pressed for his firing in 2018 for political reasons.

McCabe had become a player in questioning Trump’s fitness for office and whether he was compromised by the Russians. McCabe opened the obstruction of justice investigation into Trump before Robert Mueller’s appointment as special counsel, and he spoke to CBS News earlier this year about how Rosenstein had raised the possibility of the President’s Cabinet using the 25th Amendment to remove Trump from office.

The department and FBI “responded to Plaintiff’s two decades of unblemished and non-partisan public service with a politically motivated and retaliatory demotion in January 2018 and public firing in March 2018 – on the very night of Plaintiff’s long-planned retirement from the FBI,” the lawsuit states.

“It was Trump’s unconstitutional plan and scheme to discredit and remove DOJ and FBI employees who were deemed to be his partisan opponents because they were not politically loyal to him.”

The lawsuit cites one conversation McCabe’s lawyers had with Justice Department official Scott Schools, who told them, “We’re making this up as we go along,” in the days before the firing.

At the time Sessions announced he was fired at 10 p.m. on a Friday, McCabe was already on leave, having completed his last day with the FBI that day, his lawsuit says. He was turning 50 that weekend and served in the bureau for 21 years, making him eligible for his pension, health care coverage and other retirement benefits, the lawsuit says. He was not a political appointee and instead had served in what’s called a career position.

McCabe also claims in the suit that Sessions didn’t have ability to fire him under the law.

Following the inspector general report into McCabe, the findings were referred to the US Attorney’s office in Washington for possible criminal charges. McCabe has not been charged with a crime.

This story has been updated.