WASHINGTON (Reuters) - Former FBI Director James Comey on Monday accused U.S. President Donald Trump of undermining the rule of law in the United States by lying about the FBI, and he urged Republican lawmakers to “stand up and speak the truth” about Trump’s behavior.

Comey, who was fired by Trump in May 2017 while he was leading an investigation into Russian interference in the 2016 U.S. election and possible Trump campaign collusion, made his remarks after his second appearance this month before two House of Representatives committees.

Comey said lawmakers had again asked about former Secretary of State Hillary Clinton’s emails and a dossier that Republicans claim was used to justify a warrant to conduct secret surveillance of a Trump presidential campaign aide.

“This while the president of the United States is lying about the FBI, attacking the FBI and attacking the rule of law in this country. How does that make any sense at all?” Comey told reporters after spending more than five hours being interviewed behind closed doors by the House Judiciary and House Oversight committees.

“Republicans used to understand that the actions of a president matter, the words of a president matter, the rule of law matters and the truth matters. Where are those Republicans today?” Comey asked.

Republican Trump has called the Russia investigation by Special Counsel Robert Mueller a “witch hunt” and on Sunday on Twitter labeled his own former personal lawyer Michael Cohen a “rat” for cooperating with prosecutors. Trump also accused Federal Bureau of Investigation agents of breaking into Cohen’s office when they were in fact acting with a search warrant.

Cohen was sentenced to three years’ prison last Wednesday for crimes including orchestrating hush payments to women in violation of campaign laws before the 2016 election. Cohen said he was directed by Trump.

“The FBI’s reputation has taken a big hit because the president of the United States, with his acolytes, has lied about it constantly,” Comey said when asked whether he bore any responsibility for damaging the FBI’s reputation.

Comey said “at some point someone has to ... stand up for the values of this country and not slink away in retirement, but stand up and speak the truth.”

Asked about the president calling Cohen a “rat,” Comey said it undermined the rule of law.