President Barack Obama will cut short a trip to Europe and travel to Dallas next week in the wake of the deadly ambush in the city that left five police dead, the White House said on Friday.
"The President has accepted an invitation from Dallas mayor Mike Rawlings to travel to Dallas early next week," spokesman Josh Earnest said in a statement, adding that Obama would return to the United States Sunday night -- one day ahead of schedule.
Obama, who was in Warsaw this week attending a NATO summit, weighed in on the attacks from the Polish capital, calling the episode "vicious, calculated and despicable".
Micah Johnson, the 25-year-old black Army veteran who carried out the sniper-style attack, killed five police while wounding seven more, as well as injuring two civilians.
Before being killed by police, he told officers he wanted to kill white cops in retaliation for the harsh treatment of African Americans by law enforcement.
Earlier in the week, two black men were killed by officers in other US cities, drawing protests across the nation.
After travelling to Dallas, Earnest said Obama will "continue the work to bring people together to support our police officers and communities and find common ground by discussing policy ideas for addressing the persistent racial disparities in our criminal justice system".
According to the White House, Obama will depart for Madrid today. On Sunday he will meet with his Spanish counterpart before speaking to US military personnel serving at the naval base of Rota.
He is trimming a visit to Seville off his travel itinerary to arrive back in Washington on Sunday night.