Former President Barack Obama is speaking out following two mass shootings in El Paso, Texas and Dayton, Ohio resulting in at least 31 deaths and many more injuries. 

In a statement posted to Twitter Monday afternoon, Obama offered condolences from him and Michelle Obama to families suffering from losses following the shootings before making two distinct observations on the latest round of mass shootings.

First, Obama called out government officials on failing to make any significant changes on gun control laws. 

"No other developed nation tolerates the levels of gun violence that we do," Obama said in his statement. "Until all of us stand up and insist on holding public officials accountable for changing our gun laws, these tragedies will keep happening."

Obama said evidence shows that tougher gun laws can stop some killings. 

"They can save some families from heartbreak," Obama wrote. 

RELATED: Trump condemns 'racism, bigotry and white supremacy' after weekend of shootings

RELATED: 31 dead from 2 mass shootings in one weekend

He went on to emphasize the rise of racist ideologies in America and the need to stop them.

"While the motivations behind these shootings may not yet be fully known, there are indications that the El Paso shooting follows a dangerous trend of troubled individuals who embrace racist ideologies and and see themselves obligated to act violently to preserve white supremacy," Obama said. "Both law enforcement agencies and internet platforms need to come up with better strategies to reduce the influence of these hate groups."

Before ending his statement, Obama said the racist language being used today is the same language at the root of slavery, Jim Crow, the Holocaust, the genocide in Rwanda and ethnic clenching in the Balkans. 

Obama Book
FILE - This Feb. 19, 2019, file photo shows former President Barack Obama speaking at the My Brother's Keeper Alliance Summit in Oakland, Calif. Obama’s post-White House memoir isn’t expected to be released this year, setting up the likelihood that the highly anticipated book will drop in the midst of the 2020 campaign. Publisher Penguin Random House started alerting foreign partners and others about the status of Obama’s book on Tuesday, May 7,. (AP Photo/Jeff Chiu, File)
AP

"We should soundly reject language coming out of the mouths of any of our leaders that feeds a climate of fear and hatred or normalizes racist sentiments," Obama said. "Leaders who demonize those who don't look like us, or suggest that other people, including immigrants, threaten our way of life."

In remarks made by President Trump Monday regarding the shootings in Texas and Ohio, Trump condemned racism following reports the El Paso shooter was anti-immigrant. 

"In one voice, our nation must condemn racism, bigotry and white supremacy," Trump said.

Obama's statement is his first following comments made by President Trump in which he told four Democratic congresswoman that they should "go back" to their home countries. Later, Trump's supporters chanted "send her back" in reference to Somali-born congresswoman Rep. Ilhan Omar during a Trump 2020 campaign rally. Trump later said he disavowed the chant, but refused to stop it despite saying he did.