The most evident function of clothing is to enhance the comfort of the wearer, by defending the wearer from the elements. In hot climates, clothing gives protection from sunburn or wind damage, while in cold climates its thermal insulation properties are usually more important. Shelter typically decreases the working need for clothing.
As an example, coats, hats, gloves, and other shallow layers are usually removed when entering a warm home, especially if one is residing or sleeping there.
Likewise, clothing has seasonal and regional parts, so that thinner materials and fewer layers of clothing are usually worn in warmer seasons and regions than in colder ones.