The gunman killed in a stand-off with Dallas police said he wanted to kill white people, especially officers, the city's police chief has said.
The suspect told police that he was upset about the recent police shootings of black people, Police Chief David Brown told reporters.
Five Dallas police officers were killed and seven wounded by snipers during peaceful protests against the shooting of black men by police, officials say.
Three people are in custody.
Mr Brown said the suspect had been killed when police used explosives placed by a robot to end a tense stand-off in a building where he was holed up. Before that he had spoken to a negotiator.
"He said he was upset about Black Lives Matter [protest movement]; he said he was upset about the recent police shootings," Mr Brown told a news conference.
http://www.bbc.com/news/world-us-canada-36745862