Purpose: This study investigated the effect of family members on terminally ill cancer patients by measuring the relationship of the presence of the family caregivers, visiting time by family and friends, and family adaptability and cohesion with patient's anxiety and depression.; Methods: From June, 2016 to March, 2017, 100 terminally ill cancer patients who were admitted to a palliative care unit in Seoul, South Korea, were surveyed, and their medical records were reviewed. The Korean version of the Family Adaptability and Cohesion Evaluation Scales III and Hospital Anxiety-Depression Scale was used. Chi-square and multiple logistic regression analyses were used.; Results: The results of the chi-square analysis showed that the presence of family caregivers and family visit times did not have statistically significant effects on anxiety and depression in terminally ill cancer patients. In multiple logistic regression, when adjusted for age, sex, ECOG PS, and the monthly average income, the odds ratios (ORs) of the low family adaptability to anxiety and depression were 2.4 (1.03-5.83) and 5.4 (1.10-26.87), respectively. The OR of low family cohesion for depression was 5.4 (1.10-27.20) when adjusted for age, sex, ECOG PS, and monthly average household income.; Conclusions: A higher family adaptability resulted in a lower degree of anxiety and depression in terminally ill cancer patients. The higher the family cohesion, the lower the degree of depression in the patient. The presence of the family caregiver and the visiting time by family and friends did not affect the patient's anxiety and depression.