"Too often, law enforcement gets scapegoated for the broader failures of our society and criminal justice system. I know that you do your jobs with distinction no matter the challenges you face. That's part of wearing a badge.
"But we can't expect you to contain and control problems that the rest of us aren't willing to face or do anything about," Obama said in his address to the International Association of Chiefs of Police (IACP) in Chicago.
Obama acknowledged that the stereotypes misunderstanding between the police officers and minority communities is unlikely to go overnight.
"It's certainly not going to happen overnight. And it's especially tough because there's more crime in these communities, which means that the police are interacting with them more than they are in some fancy neighborhoods," he said.
Also Read
Good community policing has to be a two-way street.
"Today, Americans are nearly half as likely to be the victim of an aggravated assault, and less than half as likely to be the victim of a robbery," he said.
"We've got to resist the false trap that says either there should be no accountability for police, or that every police officer is suspect no matter what they do. Neither of those things can be right. It's on all of us to let investigations uncover facts," he added.
"Restoring trust between communities. Refusing to give up on gun safety. We can take those steps. That's within our reach," he said.
"We can't stop every crime. We can't prevent every tragedy. There is evil in the world. There are just some bad people. You don't know why sometimes, it just happens.
"You can't always make excuses for it; sometimes you can't even understand it. That's why we need laws. That's why we need law enforcement. That's why your job is dangerous. So we can't eliminate all of that," he observed.