Social relationships shape human health and mortality via behavioral, psychosocial, and physiological mechanisms, including inflammatory and immune responses. Though not tested in human studies, recent primate studies indicate that the gut microbiome may also be a biological mechanism linking relationships to health. Integrating microbiota data into the 60-year-old Wisconsin Longitudinal Study, we found that socialness with family and friends is associated with differences in the human fecal microbiota. Analysis of spouse (N = 94) and sibling pairs (N = 83) further revealed that spouses have more similar microbiota and more bacterial taxa in common than siblings, with no observed differences between sibling and unrelated pairs. These differences held even after accounting for dietary factors. The differences between unrelated individuals and married couples was driven entirely by couples who reported close relationships; there were no differences in similarity between couples reporting somewhat close relationships and unrelated individuals. Moreover, married individuals harbor microbial communities of greater diversity and richness relative to those living alone, with the greatest diversity among couples reporting close relationships, which is notable given decades of research documenting the health benefits of marriage. These results suggest that human interactions, especially sustained, close marital relationships, influence the gut microbiota.