Exercise can prevent and effectively treat depression; three types of exercise are particularly beneficial.