AMHERST, Mass.—When Peter Gagliardi first heard about an owner looking to sell an old farmhouse in this college town, he thought it seemed like an ideal place for an affordable housing complex. The property was across the street from a bus stop, near a bike path, and had access to two different sewer lines. What’s more, the city of Amherst, concerned with rising housing prices, had made a commitment to developing more affordable housing for residents in the town and region.

So Gagliardi’s nonprofit, HAPHousing, hired an architecture firm that would convert the farmhouse into 26 affordable units, a development that would blend into the bucolic landscape of ramshackle barns and rolling hills.

But when the plan for the development, called Butternut Farms, ended up in front of the community, opposition was vociferous.

“People basically said, ‘We’re in favor of affordable housing, but it shouldn’t be in a residential neighborhood,’” Gagliardi told me.

In a zoning meeting about the development, some people said their children had been bullied when they lived in rental developments and didn’t want that to happen again. Others said there would be too much traffic if the development was built. Still others worried that they would no longer be able to go into their backyards in their underwear. A young boy complained that the residents of the affordable-housing complex would run over the turtles that sometimes appeared in the neighborhood. Another resident complained that he used the property—which was private—to pick blueberries or race ATVs, and the development would put an end to all of that.

“Some of the things that were said were on the hateful side,” Gagliardi said. “It happens often, it’s the Not In My Backyard Syndrome.”

More From

For more than a century, municipalities across the country have crafted zoning ordinances that seek to limit multi-family (read: affordable) housing within city limits. Such policies, known as exclusionary zoning, have led to increased racial and social segregation, which a growing body of work indicates limits educational and employment opportunities for low-income households.

But Massachusetts has a work-around: A state statute, called 40B, allows developers to get around exclusionary zoning and build affordable housing in communities where only a small percentage of units are considered affordable. (A few other states have similar policies.) The statute, passed in 1969 and upheld by the state’s Supreme Judicial Court in 1973, has led to the construction of 1,300 developments throughout the state, containing a total of 34,000 units of affordable housing, according to Citizens’ Housing and Planning Association, or CHAPA.

Projects built under 40B are almost always controversial: The statute was enacted in the first place because most communities outside of big cities didn’t permit multi-family housing, said Ann Verrilli, the director of research at CHAPA. Even with the statute, communities often spend millions of dollars in legal fees to try and stop the projects, Verrilli told me.

“There’s real resistance to change, resistance to development of any kind that may have school-aged kids,” she said.

Butternut Farms, in Amherst, took 10 years to build. (Alana Semuels)

The experience of developers trying to build affordable housing in Massachusetts takes on added significance now, as housing advocates wait for a decision on a landmark case in front of the Supreme Court that concerns where low-income housing projects are placed. The case, Texas Department of Housing and Community Affairs v. The Inclusive Communities Project, arose when a nonprofit housing group sued Texas, arguing that the state primarily distributed tax credits for low-income housing projects in minority-dominated areas. Inclusive Communities argued that doing so perpetuated segregation and violated the Fair Housing Act, which was passed in 1968 to prevent landlords, municipalities, banks and other housing providers from discriminating on the basis of race. The Supreme Court case centers on whether this discrimination has to be intentional in order to be illegal, or whether the Fair Housing Act also seeks to prevent policies that may not be intentionally discriminatory, but that have a “disparate impact” on minorities.

Housing advocates say the parts of the Fair Housing Act being challenged in this case are important tools in ensuring the country does not become even more deeply segregated. As things are now, few states have policies in place that try and integrate communities or develop affordable housing in so-called “high opportunity” areas. And the process of bringing discrimination claims to court under the Fair Housing Act is a difficult and expensive one. The Supreme Court may yet make it even more difficult to build housing for poorer families in anywhere besides the poorest places.

“This decision will have a very profound impact on millions of Americans going forward at a time when we need every tool we can use in the arsenal of civil rights actions to make sure we live up to the aspiration of providing equal opportunity and ending discrimination in this country,” said Dennis Parker, the director of the Racial Justice Program at the ACLU, which filed an amicus brief on behalf of Inclusive Communities.

To be sure, there are reasons—besides pure racism—why a wealthy community might resist the placement of affordable housing within city limits. Many municipalities already have trouble funding schools. With more houses and families but not much more of a tax base, their budget problems could get even worse. The small Massachusetts town where I grew up, and where my brother is a public-school teacher, has been enmeshed in debate over a 40B proposal at the same time voters were asked to increase taxes so the town could continue funding schools at adequate levels.

More From

But people who oppose 40B projects and other affordable housing developments often don’t have any complaints after the projects are built, according to research. A study out of Tufts University, “On The Ground: 40B Controversies Before and After” looked at some of the most controversial 40B projects in Massachusetts that were completed before June 2006. It found that the concerns of residents expressed before construction were usually not realized, and that controversy evaporated after construction wrapped up.

“This study provides significant evidence that the fears of new affordable housing development are far more myth than reality,” the study concluded.

Similarly, Princeton professor Douglas Massey studied an affordable housing development in Mount Laurel, New Jersey, that local residents had complained would lower home values, increase crime rates, and cause local taxes to rise.

He found that the development did none of those things. Many surrounding neighbors didn’t even know there was a housing project nearby.

What’s more, the lives of residents in the housing development improved markedly after they moved to the affluent suburb. An increasing amount of data seems to show that location matters just as much as income in determining a child’s likelihood of escaping poverty. As I’ve written about before, children from low-income families who move to more affluent suburbs are more likely to graduate from high school, attend four-year colleges, and have jobs than their peers who stayed in the city. And cities that have made an effort to keep schools desegregated have enjoyed less race-based strife than peer cities.

Still, affluent cities and towns often resist low-income housing projects: Despite 40B in Massachusetts, many areas of the state are falling back into the same segregation patterns that the Fair Housing Act sought to remedy nearly 50 years ago. Recent research showed, for example, that the Boston metro area has more racially concentrated areas of affluence (census tracts where 90 percent is white and wealthy) than any of America’s 20 biggest cities.

There are few states or municipalities that have laws targeted at exclusionary zoning. Three states—Massachusetts, Rhode Island, New Jersey—have “exemplary interventions” to address exclusionary zoning, according to a paper by Rachel G. Bratt and Abigail Vladeck of Tufts University. Montgomery County Maryland also has a similar intervention. Other states, such as Oregon and Texas, prohibit mandatory inclusionary zoning requirements. In places that don’t strive to promote integration, segregation is likely to be prevalent.

“The market is going to work to de facto disadvantage lower-income residents,” Bratt told me. “The theory is that in order to deal with segregated patterns, you need to have proactive policies to deal with it.”

Many affordable housing units in the suburbs are a direct result of court cases, and even enforcement of those programs are lax. In 2009, Westchester County in New York signed a desegregation agreement and agreed to build and market hundreds of apartments for moderate-income minorities after a court found it had misled HUD by applying for funds that it said it would use to integrate housing, and then did the opposite. Four years later, the county had not complied with the provisions.

New Jersey is one of the few states that bars wealthy towns from excluding affordable housing, largely because of court decisions relating to the Mount Laurel case, but even those have been under attack. Governor Chris Christie attempted to disassemble the state agency overseeing affordable housing and wanted to allow municipalities to decide how much affordable housing to allow. A state appeals court blocked these attempts, but the instance points to the fact that affordable housing programs are being challenged in the few states that have them.

In Massachusetts, a group put an initiative on the ballot in 2010 that sought to repeal 40B. The coalition for repealing the law said that the statute “has destroyed communities in rural, suburban and urban neighborhoods alike, while lining the pockets of out-of-state speculators.”

The repeal effort failed, 58 percent to 42 percent, and Marc Draisen, the executive director of the Metropolitan Area Planning Council, a state planning group, says he thinks the law now has widespread support. But that doesn’t mean it has gotten any easier to build affordable housing.

Most developers don’t want to do mixed-income developments, and prefer to build market-rate buildings where they won’t have to face any community resistance or years of legal wrangling. That’s even in a state that’s seen by many as a leader in encouraging the construction of affordable housing in communities that don’t really want it.

“40B is a legal tool but it doesn’t eliminate prejudice,” Draisen told me. “Some people just do not want low-income housing in their communities.”

This prejudice won’t likely change soon, no matter what the Supreme Court decides in Texas v. Inclusive Communities. Housing advocates see some hope in an impending HUD rule, which may make it harder for communities to show this prejudice. HUD wants to stipulate that all areas receiving federal funds for low-income housing show that they are proactively promoting integration, housing experts say.

Still, the government currently lacks the resources to ensure that every community promotes integrated housing. It may be up to developers like Peter Gagliardi to continue to keep fighting to do so. And he can hold up Butternut Farms as an example of how it can work.

The development is located off a two-lane road near Hampshire College, a campus with rolling green hills, barns, and unobtrusive brick buildings. The 26 units blend right in: They are distributed in a few red barn-like structures and one yellow multi-family house, surrounded by trees and set back from the road, located up a sloping driveway.

Butternut Farms, from the road (Alana Semuels)

Gagliardi first set foot on this property in 2000. The homes opened to tenants in 2011. The intervening decade was threaded with court cases, appeals, and $150,000 worth of legal costs for HAP, despite pro bono legal assistance.

The project, which involved the construction of three detached buildings of eight units of housing each and renovating the farmhouse to include two new units, violated parts of Amherst’s zoning bylaws regarding parking and housing density in residential areas. But that's the point of 40B—it allows developers to get around those laws if the housing they are building is affordable.

The local zoning board approved HAP’s application to build a 26-unit rental development in 2002, but neighbors immediately filed suit to annul the approval. When a Land Court judge upheld the permit, neighbors appealed. When the case went to the state Supreme Judicial Court, justices decided on behalf of HAP, in 2007.

“Our conclusion does not ‘needlessly infringe’ on the ‘settled property rights of abutters,’” the justices wrote. “Rather, our conclusion takes into account that the Legislature ‘has clearly delineated that point where local interests must yield to the general public need for housing.’”

A few weeks before the first tenants moved into the apartments in 2011, a rare tornado blew through nearby Springfield, destroying dozens of affordable housing units there.

“I pointed out the irony it took us 10 years to get 26 units built here, but at the same time, many times that number of units of affordable housing were destroyed in a brief time of a tornado,” Gagliardi said.

It’s a happy ending, but the problems that face Peter Gagliardi now face the nation. The country will have to grapple with how to house low-income residents in areas of opportunity, or bear more racial strife. After all, if Gagliardi had so much trouble in a liberal town in Massachusetts, a state with some of the strongest affordable-housing laws in the country, is there any reason to believe developers will be able to build affordable housing in affluent areas in the rest of the country, especially without the benefit of the Fair Housing Act?

We want to hear what you think about this article. Submit a letter to the editor or write to letters@theatlantic.com.

Alana Semuels is a staff writer at The Atlantic. She was previously a national correspondent for the Los Angeles Times.