Healthy relationships support good mental health, while social isolation and poor relationships can be risk factors for mental health conditions like anxiety and depression.