Changing migration patterns within cities are influencing energy use, environmental impact, and the future of sustainable development.