A man opened fire at a grocery store in Buffalo, New York, on Saturday, killing 10 people.

The latest mass shooting was inspired by a racist theory popular among white supremacists and the far-right.

The theory claims that whites are being replaced in their countries by people of color and that it will cause the extinction of the white race.

The suspect in the Buffalo shooting was identified as 18-year-old Payton Gendron of Conklin, New York. Gendron pleaded not guilty to the murder charge.

A federal official told The New York Times that the suspect's manifesto contained racist and antisemitic claims, as well as plans to kill Black people and concerns about the elimination of the white race.

The location for the shooting was chosen because it had the highest percentage of Black residents near the home of the shooter, which was hours away from the crime scene, authorities said.

Dylann Roof, who killed nine Black church members during a Bible study session in South Carolina in 2015, and Tarrant, who killed 51 people in New Zealand, were all inspired by the same person.

The white supremacist replacement theory is said to have inspired the mosque attacks.

Tarrant's manifesto was called "The Great Replacement" and focused on his concern that white European society would be overrun by immigrants from Muslim and African countries. He said it could result in a complete racial and cultural replacement of the European people.

A man shot and killed 23 people in a Walmart in El Paso, Texas. The suspect had written a document that praised the attacker. The manifesto railed against the Hispanic invasion of the US.

Two years prior, white supremacists were captured chanting "You will not replace us" and "Jews will not replace us" at a Unite the Right rally in Virginia.

The ADL says that the Great Replacement theory was once limited to white supremacists but has become more mainstream.

Tucker Carlson has shared replacement theory talking points on Fox News in the past.

Carlson, one of the most popular voices on the right, has argued that Democrats are trying to diminish the political power of Americans by bringing in a brand new electorate from the Third World.

Fox News has said that Carlson was not endorsing the white replacement theory, but his segments have been embraced by white supremacists.