How do you deal with loneliness?

I work, in school, I have friends who I see multiple times per week, a good family, dogs. Yet I still feel incredibly lonely especially at night. How do you cope with the loneliness?