Favelas originated in the late 18th century as settlements for freed black slaves in Brazil and grew significantly in the mid-20th century due to rural migration. They are typically located on the outskirts of major cities and have faced issues with high crime rates, drug trafficking, and gang violence as the populations expanded rapidly. While efforts have been made to reduce favelas, their populations have continued to grow faster than the cities they border, concentrating poverty.