People can feel lonely even if they are surrounded by a lot of other people. Loneliness can occur even to people in marriages, relationships, families and successful jobs. One cause of loneliness is a lack of friends during childhood and teenage years. Loneliness can also be caused by chronic depression. Loneliness can also be caused when a relationship or marriage ends.