The quality of a person’s romantic relationship and the life stress he or she experiences in early adulthood are related to sleep quality later in life, according to a new study published in the journal Personal Relationships.

Investigators found that people who have positive relationship experiences in early adulthood experience fewer, less disruptive stressful life events at age 32, which in turn predicts better sleep quality at age 37. Sleep is a shared behavior in many romantic relationships, and it is a strong contender for how relationships “get under the skin” to affect long-term health. The study’s findings add to a growing body of literature showing that one of the important ways in which relationships impact individuals is by reducing the occurrence and severity of life stress.

“Although a large body of evidence shows that relationships are important for health, we are just beginning to understand how the characteristics of people’s close relationships affect health behaviors, such as sleep,” said lead author Chloe Huelsnitz, a PhD candidate at the University of Minnesota. “The findings of our study suggest that one way that relationships affect health behavior is through their effects on individuals’ stress.”