A March 2021 study at University of California San Diego School of Medicine found 

“…lower levels of loneliness and higher levels of wisdom, compassion, social support and engagement were associated with greater phylogenetic richness and diversity of the gut microbiome,”

"It is possible that loneliness may result in decreased stability of the gut microbiome and, consequently, reduced resistance and resilience to stress-related disruptions, leading to downstream physiological effects, such as systemic inflammation,”

"Bacterial communities with low alpha-diversity may not manifest overt disease, but they may be less than optimal for preventing disease. Thus, lonely people may be more susceptible to developing different diseases."

"Loneliness may lead to changes in the gut microbiome or, reciprocally, alterations of the gut milieu may predispose an individual to become lonely," 

"We need to investigate much more thoroughly to better understand the phenomenon of the gut-brain axis."