In cities, there's less need to drive with walkable areas, and a scale that better supports mass transit. Smaller land footprint, and smaller homes take less energy to heat or cool. Economies of scale in providing goods and services. Ships release less CO2 than trucking, and lots of cities have ports. If you don't like cities that's one thing, but the environmental impact is pretty unequivocally less than suburban or rural living.