President Donald Trump speaks on the telephone with Australian Prime Minister Malcolm Turnbull in the Oval Office of the White House in Washington. In the background is a portrait of former President Andrew Jackson which Trump had installed in the first few days of his administration. File picture: Alex Brandon/AP

Albuquerque, New Mexico — When President Donald Trump drew widespread condemnation for describing a majority-black congressional district as a "rat and rodent infested mess" and for tweets targeting four Democratic congresswomen of color, it was not the first time a U.S. president attracted such attention.

Throughout American history, presidents have uttered comments, issued decisions and made public and private moves that critics said were racist, either at the time or in later generations. The presidents did so both before taking office and during their time in the White House.

Many of the early presidents, George Washington to Zachary Taylor, owned black slaves and held power when African Americans, Native Americans and Latinos did not have the right to vote or serve on juries and could be refused service in public accommodations. They often repeated racist views that were commonly held in their times, even when challenged by scholars or civil rights leaders.

Before he became the nation's third president, Thomas Jefferson wrote in the Declaration of Independence that "all men are created equal." But in his only book, "Notes on the State of Virginia," published in 1785, the future president expressed a series of beliefs about African Americans that would be seen today as racist.

He wrote that blacks were cursed with "a very strong and disagreeable odor" and were incapable of producing art and poetry. And though he said he believed slavery was immoral, he owned slaves and, historians say, carried on a sexual relationship with at least one of them, Sally Hemings. If every black slave were ever freed, he wrote, they should be deported since he believed blacks and whites could not live together peacefully.

A statue of Thomas Jefferson greeting visitors in the main lobby of the Jefferson Hotel in Richmond. Jefferson once wrote that African Americans smelled and were incapable of producing art and poetry. File picture: Steve Helber/AP

Andrew Jackson, the nation's seventh president, was also a slaveholder from the South. Before he became president, he offered in an 1804 advertisement $50 for the return of a runaway slave and $10 extra "for every hundred lashes any person will give him, to the amount of 300." In Jon Meacham's 2008 book "American Lion: Andrew Jackson and the White House," Meacham wrote that Jackson owned around 150 slaves and freed none of them in his will.

As president, Jackson allowed his postmaster general to let Southerners seize anti-slavery publications, in direct violation of the First Amendment. He called the abolitionist pamphlets urging black equality "unconstitutional and wicked."

Jackson is widely vilified today among Native Americans for his role in forcibly removing indigenous people from their land, especially for the Trail of Tears. The removal of the Cherokee people from Georgia led to thousands of deaths.

"The philanthropist will rejoice that the remnant of that ill-fated race has been at length placed beyond the reach of injury or oppression," Jackson said in his farewell address.

President Woodrow Wilson drew criticism in 1915 for screening at the White House the virulently racist film, "The Birth of a Nation." File picture: AP

The Virginia-born Woodrow Wilson worked to keep blacks out of Princeton University while serving as that school's president. When he became president of the U.S., the Democrat refused to reverse the segregation of civil service, though he had won the White House with the support of some African American men.

In 1915, Wilson sparked outrage by screening the racist film "The Birth of a Nation" at the White House. The silent movie was the retelling of Reconstruction through the eyes of the Ku Klux Klan. The movie portrayed the KKK as heroes and African Americans as uncivilized.

"No explanation or apology followed" after the screening, Patty O'Toole wrote in "The Moralist: Woodrow Wilson and the World He Made."

Wilson appeared oblivious during the "Red Summer" of 1919 — a time when communities across the country saw white mobs attack African Americans, resulting in hundreds of deaths. He spoke out against lynching but did not use the federal government's resources to stop the violence.

Democrat Lyndon Johnson assumed the presidency in 1963 after the assassination of John F. Kennedy and sought to push a civil rights bill amid demonstrations by African Americans. Johnson famously convinced skeptical lawmakers to support the measure and gave a passionate speech about his days as a teacher in Mexican American schools to urge Congress to pass the Voting Rights Act.

US President Lyndon B. Johnson, left, munching on a cookie, and George Meany, president of the AFL-CIO, laugh at a speaker's remark during the first annual Jewish Labor Committee Human Rights Awards dinner at the Sheraton in New York City in 1967. It was later revealed that Johnson sometimes used racist epithets in secretly recorded conversations with aides. File picture: Marty Lederhandler/AP

But according to tapes of his private conversations, Johnson routinely used racist epithets to describe African Americans and some blacks he appointed to key positions.

His successor, Republican Richard Nixon, also regularly used racist epithets while in office in private conversations.

"We're going to (place) more of these little Negro bastards on the welfare rolls at $2,400 a family," Nixon once said about what he saw as lax work requirements. Nixon also made derogatory remarks about Jews, Mexican Americans, Italian Americans and Irish Americans.

As with Johnson, many of Nixon's remarks were unknown to the general public until tapes of White House conversations were released decades later.

Recently the Nixon Presidential Library released an October 1971 phone conversation between Nixon and then California Gov. Ronald Reagan, another future president. Reagan in venting his frustration with United Nations delegates who voted against the U.S. dropped some racist language.

President Richard Nixon embraces Sammy Davis Jr. during festivities at the White House where about 450 former prisoners of war and their guests attended the affair in Washington in 1973. It was later discovered that Nixon sometimes used racist epithets in secretly recorded conversations with aides. File picture: AP

"Last night, I tell you, to watch that thing on television as I did," Reagan said. "To see those, those monkeys from those African countries — damn them, they're still uncomfortable wearing shoes."

Nixon began laughing hard.

Reagan would launch his 1980 general election presidential campaign in Mississippi's Neshoba County — a place where three civil rights activists were murdered in 1964.

Reagan ignored the criticism of his visit and told a cheering crowd of white supporters, "I believe in states' rights."

AP