The court ruled against the social welfare board that turned down the man's request for funds to purchase a tent, sleeping bag, mat and backpack, Sweden's The Local reported Wednesday.
The man said he would rather pitch a tent in Stockholm than accept the "substandard" temporary accommodations that are provided to homeless people.
In its ruling, the court said the tent solution wouldn't be detrimental to the man's health or inappropriate in any other way.
It turns out the camping equipment will cost the municipality the same amount of money as sending the man to a homeless shelter, the Local said.
Celebrity Breakups and divorces of 2014 [PHOTOS]