All of us have experienced seasons of loneliness. We were created by God to be connect-ed to other people; it's unhealthy to be disconnected from community. There are a variety of factors that can contribute to loneliness--sometimes it's self-imposed, other times we're simply in environments where people do not share our value system. In either case, being in community is absolutely essential to a healthy Christian walk.
James 5.16: Confess your trespasses to one another, and pray for one another, that you may be healed.