Boston’s plans to harden its waterfront against the perils of climate change—storm surge, flooding, and sea-level rise—seem like an all-around win. The only way to keep a higher, more turbulent Atlantic out of South Boston and Charlestown is to build parks, bike paths, gardens, and landscaped berms with waterfront views. These are all things that make a greener, more walkable, more livable city. If this is adaptation to a warmer world, bring it on.

Except geographers and community activists are getting more and more worried about how cities choose which improvements to build and where. They’re noticing that when poorer neighborhoods get water-absorbing green space, storm-surge-proof seawalls, and elevated buildings, all of a sudden they aren’t so poor anymore. The people who lived there—who would’ve borne the brunt of whatever disasters a changing climate will bring—get pushed out in favor of new housing built to sell at or above market rates to people with enough money to buy not just safety but a beautiful new waterfront. In real estate lingo, “adaptations” are also “amenities,” and the pursuit of those amenities ends up displacing poor people and people of color. The phenomenon has a name: green gentrification.

Fighting climate disasters is a good idea for the planet but can have unintended consequences for neighborhoods. “In order to construct a green, resilient park or shoreline, we get rid of lower-income housing... and behind it or next to it, you’ll have higher-income housing being built,” says Isabelle Anguelovski, an urban geographer at the Autonomous University of Barcelona who co-wrote an article about green gentrification in December’s PNAS. It can get even worse, she says. Hardening one neighborhood so that water can’t flow inland there means the water goes somewhere else. “The flooding and storm events go into the basements of the public housing next door,” she says.

That’s double jeopardy. And it turns into triple jeopardy, thanks to economics. New amenities plus new luxury housing drive up local housing prices, which drive out working-class and poorer residents. “The question is not only what Boston is facing, which is middle-class gentrifiers with a slightly higher income and education. It’s über-rich people who end up taking over cities until they are unable to fulfill their direct functions,” Anguelovski says. The gentrification wave is its own kind of economic apocalypse. If it hits, none of the people who make a city work—teachers, police officers, health care workers, bus drivers—can afford to live there. “Or it becomes so important from an economic standpoint, so desirable and hardened with infrastructure that entire buildings are empty—purchased by real estate funds or individuals from the Middle East or Russia,” Anguelovski says.

The problem that cities face is the difference between physics and real estate. Climate change happens on the scale of decades or centuries; real estate development and politics happen on fiscal and electoral timescales. “I get it. Green space is great, and while it may not be much of an improvement in terms of climate adaptation, it’s good for people’s well-being and quality of life,” says Ken Gould, an environmental sociologist at Brooklyn College and coauthor of Green Gentrification: Urban Sustainability and the Struggle for Environmental Justice. “Does it sequester much carbon? Not really. It’s fine. But you have to manage the real estate markets, because markets left to themselves, when you put in an amenity, are going to generate development.”

Cities everywhere

It’s not just Boston. In Philadelphia, Anguelovski and her team studied a program to build flood-fighting infrastructure like parkland, green roofs, and curbside swales to absorb rainwater before it hit sewers. This, too, was an engine of gentrification. “What you see on the maps is that the areas that gained the greatest amount of green resilient infrastructure are also those that became the most gentrified,” Anguelovski says. “And the areas that blacks and Latinos have had to move to between 2000 and 2016 have been the areas that got the least infrastructure.” In Brooklyn’s diverse Sunset Park neighborhood, residents and interest groups are arguing over a rezoning proposal that’d be favorable to green businesses and harden the waterfront. They fear it’d also force out the ethnically diverse, working-class group of people who live there.

Again and again, fights for environmental justice victories lead to wins for the environment and miscarriages of justice. “Neighborhood justice organizations are fighting for green space and waterfront access, and on those rare occasions they win it, it ironically triggers this process that destroys the community that’s been fighting for it,” Gould says. “These are all ex-industrial waterfronts that sat fallow for 50 years as the country deindustrialized... Nobody wanted to live by the waterfront because it was smelly, dirty, and dangerous, so that’s where you put public housing. And then all of a sudden it’s waterfront views and access to nature.”

The problem is, that can’t be a reason not to build the new infrastructure. Cities—and the people who live there—need it. As sea levels rise and storms become more intense (or choose your own favorite regional climate-powered disaster), cities have to build defenses. But good housing policy has to be a part of those policies. “Green gentrification is getting used as a tool to say we shouldn’t be investing in a neighborhood, in these improvements that underresourced communities deserve,” says Laura Tam, sustainability and resilience director for the urban planning advocacy group SPUR. “The problem is we don’t have effective housing policy that prevents people from being displaced when their neighborhood gets amenities important for any neighborhood, including sewer service, flood protection, and parks.”

New housing for old stock

Obviously, cities are facing more and more climate-related hazards. It’d be policy malpractice to not get ready for them. “It’s not too difficult for a city to make green infrastructure investments in neighborhoods that have been historically underinvested in, but the housing side needs to kick in,” says Constantine Samaras, an energy and climate researcher at Carnegie Mellon University. “The people who live in these underinvested neighborhoods deserve a neighborhood with bike lanes and green space. It’s up to city policy to make sure they can stay.” The trick is to build new housing while not uprooting people who live in the old stock—so that everyone benefits from the protection against disaster, not just a wealthy, lucky few.

As Anguelovski’s team argued in an article in Proceedings of the National Academies of Science last December, local and state governments and planning agencies should have policies that guard against green gentrification. That means requiring developers to build a certain number of affordable homes on-site (instead of letting them simply contribute money to a fund meant to pay for affordable housing elsewhere in the city), guaranteeing residents the right to stay, and figuring out ways to make sure existing affordable housing doesn’t convert to market rate at the exact moment the newly greened neighborhood gets pricy and desirable. Climate change is going to cause problems for everyone; it only makes sense that the solutions are for everyone too.