A well-known filmmaker and outspoken critic of President Barack Obama today pleaded guilty to violating campaign finance laws.

Dinesh D’Souza pleaded guilty to one criminal count of making illegal contributions in the names of others, and a second, more serious, count will be dismissed.

D’Souza was on “The Kelly File” to discuss the guilty plea.

Dinesh D’Souza, Gerald Molen Talk New Film ‘America’

The filmmaker explained that his long-time friend Wendy Long was running for Senate in New York, but her campaign was flailing, and he wanted to help her. He said he chose the “wrong and stupid way to do it” and shouldn’t have done it, but is now taking responsibility for his actions.

Still, D’Souza said there is an issue of selective prosecution. He cited multiple campaign finance issues with Democratic Sen. Harry Reid, saying that it seems that the Obama administration does not want to push cases like that.

“It’s the issue of fair treatment. You know, you don’t wanna have a country where Lady Justice has one eye open and she winks at her friends, and then she gives the evil eye to her enemies,” D’Souza said.

EXCLUSIVE: D'Souza Responds to Allegations, Says He Got 'Under Obama's Skin' With Film

D’Souza will learn whether or not he faces jail time when he is sentenced in September.

Meanwhile, he said this incident will not deter him from speaking out on important issues.

Watch the full interview above.