President Barack Obama says the nation will get through the recent killings of police officers with the "love and empathy of public servants" like the ones who were targeted in recent days.
In an open letter to the nation's law enforcement officers, Obama said overcoming will also require resilience, the grace of loved ones and the good will of activists.
The White House released the letter Tuesday. It was dated Monday, the day after two police officers and a sheriff's deputy were killed in Baton Rouge, Louisiana, after being ambushed by a lone gunman. Baton Rouge is where police on July 5 fatally shot Alton Sterling, a 37-year-old black man outside a convenience store. Sterling's death sparked nationwide protests.
The latest news from around North Texas.
Sunday's law enforcement deaths followed the July 7 sniper killings of five Dallas police officers as they guarded a peaceful protest.
Obama has said nothing justifies attacks on law enforcement, a sentiment he reiterated in the two-page letter. The Fraternal Order of Police posted the president's letter on its social media sites.
"Any attack on police is an unjustified attack on all of us," the president wrote.
The letter comes as Obama's critics accuse him of fostering a climate that has led to the intentional killing of police and other law enforcement officers.
Obama telephoned the families of the Baton Rouge officers on Monday to offer his and the first lady's condolences. He paid tribute to the Dallas officers at a memorial service there last week. He has held meetings with law enforcement officials and others, and fielded questions during a televised town hall on race in America.
Obama said in the letter that "we will get through this difficult time together."
"We will do it with the love and empathy of public servants like those we have lost in recent days. We will do it with the resilience of cities like Dallas that quickly came together to restore order and deepen unity and understanding," he said. "We will do it with the grace of loved ones who even in their grief have spoken out against vengeance toward police. We will do it with the good will of activists like those I have sat with in recent days, who have pledged to work together to reduce violence even as they voice their disappointments and fears."
"Thank you for your courageous service. We have your backs," Obama said.