GOP Rep. Matt Gaetz ripped the House majority's impeachment counsel Daniel Goldman for donating tens of thousands of dollars to Democratic campaigns.

Goldman sat on a panel with Republican counsel Steve Castor in front of the House Judiciary Committee on Monday to testify on the evidence collected in the impeachment investigation into President Trump. The Florida congressman accused Goldman of being a partisan investigator and backed up the charge with Goldman’s history of "political donations."

After a question from Gaetz on the matter, Goldman denied being "a partisan." Gaetz then asked Goldman if he ever donated to politicians, and he answered that he had.

"As a matter of fact, you've given tens of thousands of dollars to Democrats, right?" Gaetz asked. "Have you given over a hundred thousand to Democrats?"

"I don't know the number," Goldman said, adding that he does not believe his political donations are “relevant” to the impeachment discussion. The pair then got into a fiery back-and-forth over an old tweet from Goldman in which he claimed "Nothing in the [Steele] dossier has proved to be false."

[Watch: House Judiciary Committee holds public impeachment hearing]

Democratic Rep. Adam Schiff hired Goldman away from the Brennan Center for Justice earlier this year. He joined the House to aid Democratic investigations into the president in March.

Goldman became a legal analyst on NBC and MSNBC in 2017. Before that, he was an assistant U.S. attorney in the Southern District of New York for a decade.