WASHINGTON -- President Donald Trump grabbed headlines Wednesday after another fiery exchange with reporters, but this isn't the first time the Commander-in-Chief has been at odds with the press in the White House.

Over the years, there have been times when both sides have experienced tension dealing with one another.

The nation's second president, John Adams, was wary of reporters who wrote for publications that had political stances different than that of his administration.

In 1789, he signed the controversial "Sedition Act."

RELATED: White House shares edited video to justify revoking press pass of CNN's Jim Acosta

It allowed for the imprisonment of anyone who wrote "false, scandalous, or malicious writing" about the government. Journalists criticized the law as a violation of the First Amendment.

President Richard Nixon also had a deep distrust of the press and how it portrayed his presidency to the public.

Nixon secretly recorded conversations that occurred in the Oval Office.

One of Nixon's recorded conversations with former Secretary of State Henry Kissinger was particularly revealing.

Nixon could be heard telling Kissinger, "The Press is the Enemy. The Press is the Enemy. The Press is the Enemy."

RELATED: VERIFY: Did Sarah Sanders share a doctored video of Jim Acosta?

Disagreements between the press and presidents sometimes develop over how much access reporters receive to the White House and the rest of the federal government.

Some journalists felt President Barack Obama's administration lacked transparency.

The Society of Professional Journalists even wrote the President a letter about the issue in 1972. It partially read:

"You recently expressed concern that frustration in the country is breeding cynicism about democratic government. You need look no further than your own administration for a major source of that frustration."