President Trump used his speech at the Coast Guard Academy's graduation ceremony to defend himself from charges of corruption, and argue that the national media is out to get him.

"Over the course of your life, you will find that things are not always fair," Trump said at the ceremony in New London, Connecticut. "You will find that things happen to you that you do not deserve, and that are not always warranted, but you have to put your head down and fight, fight, fight."

"Look at the way I've been treated lately, especially by the media," Trump said to cheers. "No politician in history ... has been treated worse or more unfairly."

The president's commencement address on Tuesday was his first public appearance since reports surfaced that suggested he had asked former FBI Director James Comey to abandon an investigation of an associate in February. Trump faced a deluge of criticism from lawmakers in both parties in the wake of those reports Tuesday evening.

"I didn't get elected to serve the Washington media or special interests," Trump said on Wednesday. "I got elected to serve the forgotten men and women of our country and that's what I'm doing."

"I will never stop fighting for you and I will never stop fighting for the American people," he said.

Trump also used his speech to list the achievements he said his administration would soon notch.

"We're going to give you major tax reform and we're also getting closer and closer, day by day, to great healthcare for our citizens," he said.

Trump's legislative priorities have hit roadblocks on Capitol Hill amid a series of controversies that have sapped the White House's energy and resources. Since the dismissal of Comey last week, Trump and his team have struggled to explain how the president revealed highly sensitive intelligence to Russian officials, whether Trump secretly recordings his conversations, and why he reportedly pressured the former FBI director to end a criminal investigation of Gen. Mike Flynn.

"You can't let them get you down. You can't let the critics and the naysayers get in the way of your dreams," Trump said in his commencement speech, his second since taking office. On Saturday, he delivered his first at Liberty University. "Nothing worth doing ever, ever, ever came easy."

Trump also absolved the Coast Guard cadets of minor parking infractions during his address, a tradition he said he was "forced" to uphold as he ribbed the academy's student parking director.