President Barack Obama called on Congress to pass legislation by year's end to lower or eliminate mandatory minimum sentences.

Unduly harsh sentences and enforcement disparities undermine trust in the legal system, Obama said in a speech Tuesday at the annual convention of the NAACP in Philadelphia.

"Mass incarceration makes our country worse off," Obama said. "And we need to do something about it."