President Donald Trump on Monday accused the media of inciting anger in the US after gunmen killed a combined 29 people in two shootings in Texas and Ohio.

"Fake News has contributed greatly to the anger and rage that has built up over many years," Trump tweeted.

Democrats had been focusing on Trump and his rhetoric.

"News coverage has got to start being fair, balanced and unbiased, or these terrible problems will only get worse!" he added.

Visit Business Insider's homepage for more stories.

President Donald Trump accused the US media of stoking "anger and rage" in the country after two mass shootings left a combined 29 people dead over the weekend.

"The Media has a big responsibility to life and safety in our Country," Trump wrote in a tweet Monday. "Fake News has contributed greatly to the anger and rage that has built up over many years. News coverage has got to start being fair, balanced and unbiased, or these terrible problems will only get worse!"

El Paso, Texas, and Dayton, Ohio, were rocked over the weekend by two mass shootings that left a combined 29 people dead.

Much of the national conversation shortly after the shootings had been focused on Trump's rhetoric, rather than the news media's, with Democrats condemning the way Trump has described migrants after evidence indicated the El Paso shooting was racially motivated.

Shortly before the gunman opened fire at a Walmart in El Paso, someone posted an anti-immigrant document to the online message board 8chan that promised "a response to the Hispanic invasion of Texas." Trump has previously used the phrase "invasion" when addressing illegal immigration.

The Democratic presidential candidate Pete Buttigieg on Sunday suggested Trump's rhetoric made white nationalists "feel validated."

A Justice Department official on Sunday said that officials were treating the El Paso shooting as domestic terrorism. The motivation for the shooting in Dayton remained unclear.

Earlier Monday morning, Trump tweeted that Congress should link new gun-control legislation with immigration reform.

"We must have something good, if not GREAT, come out of these two tragic events!" he said.