Imprisonment can hugely affect the thinking and behavior of a person and cause severe levels of depression. However, the psychological impact on each prisoner varies with the time, situation, and place. For some, the prison experience can be a frightening and depressing one, which takes many years to overcome. Depression is especially likely in a prisoner who is subjected to pain, fear, and loneliness.