The loss of a significant person in one's life will typically initiate a grief response; in this situation, one might feel lonely, even while in the company of others.
A twin study found evidence that genetics account for approximately half of the measurable differences in loneliness among adults, which was similar to the heritability estimates found previously in children.