In recent years, studies have shown that time spent in nature can benefit our health and overall wellbeing. But before you decide on the bucolic life, consider this: new research reports that city living lowers our chance of getting depressed. It may seem counter-intuitive since urban areas are known for their higher rates of crime, grime and a fast-paced and often impersonal environment, but that’s not all they offer. Cities are also full of opportunities to connect. That’s how they help residents ward off social isolation, a big risk factor for getting the blues.

This isn’t the first time that cities have been lauded for the opportunities for social interaction they present. Research led by Luis Bettencourt, a professor of ecology and evolution at the University of Chicago, found higher rates of innovation, wealth and interaction in urban areas, specifically because of their extensive social networks.

What exactly does a social network entail? A lot. It’s made up of a rich mix of interactions with colleagues, friends, family and community members, as well as availability of social services and more.

Just as there are ways to experience nature if you’re living in a city, there are ways to increase your social networking, even if you’re living in a rural area.

Recently, another team of researchers took the potential benefits of social networking a step further: “We wondered if those (Bettencourt’s) same principles and mathematical models could be applied to psychological phenomenon, such as depression, to see if the actual social infrastructure networks of cities — and how they change as cities get larger — could affect people’s psychology in a consistent way,” Andrew Stier, a doctoral student in integrative neuroscience at the University of Chicago and a lead researcher for the current study, explained in a press statement.

In order to do it, the team examined links among depression prevalence, city size and individuals’ relationship with urban built environments using tweets and survey responses from more than 700,000 people across different urban areas in the U.S.

Their findings did indeed point to, on average, a lower incidence of depression in cities. Presumably, this is because the more social interaction we experience, the greater our stimulation, our feelings of belonging and the less likely we are to feel lonely, a major source of depression.

That said, we all know that urban life is no bed of roses. “What will be super-interesting is if we can continue to identify the properties of larger cities that promote psychological benefits, while trying to eliminate some of the negative effects of large urban living such as crime, poverty and inequality,” said study co-author, Marc Berman, an associate professor of psychology in the University of Chicago Neuroscience Institute.

Just as there are ways to experience nature if you’re living in a city by spending time in parks, even if you’re living in a rural area, there are ways to increase your social networking. For example, you can:

  • Join a club or small group. Anything from a book or gardening club to a special interest group such as woodworking or knitting.
  • Volunteer for an organization or local school or business.
  • Take a class.
  • Consider joining meetup.com where you can find groups tailored to almost any interest and age group.
  • Invite an acquaintance out for coffee and see if there’s the possibility for a deeper friendship or a shared interest you both might like to do together.

The study is published in PNAS, The Proceedings of the National Academy of Sciences.