Micah Johnson, the man accused of killing five police officers in a gun attack during a protest rally in Dallas, acted alone, officials believe.
"We believe now the city is safe," Mayor Mike Rawlings said.
Bomb-making material, rifles and a combat journal were found at the home of Johnson, who was himself killed.
The Dallas protest was against the killing of black men by police, and similar rallies drew thousands across many US cities on Friday.
'Weekend of Rage'
Dallas police chief David Brown and US Homeland Security Secretary Jeh Johnson also said the gunman appeared to have acted alone, although Texas Governor Greg Abbott said police would "continue down every rabbit trail... ensuring that we eliminate any other possible suspects or co-conspirators".
Officials on Friday had spoken of a co-ordinated attack by at least one other sniper.
Three other suspects were arrested after the shootings but no details have been released about them.
A number of gun attacks involving police officers and civilians have occurred in other parts of the US in the aftermath of the deaths in Minnesota and Louisiana.
- In Tennessee, a black army veteran killed a woman and also injured three other people, including a police officer, as he opened fire on a motorway on Thursday morning, before the Dallas attacks. After his arrest, Lakeem Keon Scott told investigators he was troubled by police violence against African-Americans
- In Missouri on Friday, a police officer was shot from behind after he walked back to his patrol car to check the driving status of a black man who he had stopped. Antonio Taylor, 31, was later arrested but the motive for the shooting is unknown
- In Georgia on Friday, an officer was shot after he responded to a call from a man who said his car had been broken into. Again the motive is unknown
- Early on Saturday in Houston, police shot dead a man they said had pointed a gun at officers in a street. Tweets under the #Alvabraziel hashtag said he was black, with some suggesting he was shot 10 times and questioning whether he was armed
In the Georgian state capital, Atlanta, on Friday evening, thousands marched in protest at the recent police shootings but although roads were blocked off the demonstration remained peaceful.
Protests against police killings were also held in other cities including Houston, New Orleans and San Francisco. In Baton Rouge, Louisiana, protesters chanted "no justice, no peace, no racist police".
There have been some arrests at the rallies, but again they were peaceful.
Leaders of the Black Lives Matter organisation have condemned the Dallas killings but say planned marches, including a "Weekend of Rage" in Philadelphia, will go ahead.
A Black Lives Matter march was also held in London on Friday.
In Dallas, Mayor Rawlings addressed thousands at a vigil to honour the police officers, urging Americans to "step up" to heal the nation's racial wounds.
'Wanted to kill whites'
Police in Dallas said the bomb-making material was found when they searched the home in the suburb of Mesquite where Micah Johnson lived with his mother.
Johnson was killed by remotely detonated explosives that were sent into a car park where he had taken refuge after the shootings.
Mr Rawlings said the suspect had been given a choice of "surrendering without harm or remaining in place", adding that he chose "the latter".
Johnson, a member of the US Army Reserve from 2009 to 2015 who had served in Afghanistan, had no criminal history.
But it has emerged that he was accused by a female soldier of sexual harassment in Afghanistan and was sent home. A lawyer said Johnson was to be removed from the army in September 2014 but was instead given an honourable discharge in May 2015.
Chief Brown said the suspect had told a negotiator that he had wanted to kill white people, especially white police officers, because he was angry about the recent shootings of black men by police.
Two civilians were also injured.
President Barack Obama, who is attending a Nato summit in Poland, called the Dallas killings a "vicious, calculated and despicable attack on law enforcement".
He ordered all flags on public buildings to be flown at half-mast.
Mr Obama will visit Dallas early next week, cutting short the Spanish part of his European trip, the White House said.
The Dallas attack marks the deadliest day for US law enforcement officers since the 9/11 attacks in 2001.
Reacting to the latest shootings, presumptive Democratic presidential nominee Hillary Clinton said: "There is too much violence, too much hate, too much senseless killing, too many people dead who shouldn't be. No-one has all the answers. We have to find them together."
Meanwhile, her Republican opponent Donald Trump said in a video the shooting in Dallas "has shaken the soul of our nation".
He added: "The deaths of Alton Sterling in Louisiana and Philando Castille in Minnesota also make clear how much more work we have to do to make every American feel that their safety is protected."
Philando Castile was shot dead after being stopped in his car by police in St Paul, Minnesota , on Wednesday. Alton Sterling was killed by police a day earlier in Baton Rouge, Louisiana.
Both incidents were captured on video, reigniting what has become a national debate.