Rio has a tropical climate due to the forests surrounding it. Most of the year, the climate is warm and humid with exceptions due to altitude, vegetation and closeness to the ocean. Occasionally temperatures can reach to a high of 40°C but mostly they hover around 30°C. Regions which are near the sea are somewhat cooler due to the ocean winds.