, since the winters are mild and quite rainy and the summers are hot and sunny. However, the rains are not abundant and occur for a short period, so the climate is semi-arid.
The city is the capital of Libya and is located on the coast, in the western part of the country.
The humidity is generally high, however, all year round, a hot, dry wind can blow from the desert, which can at the same time lower the humidity and raise the temperature.
The international airport, where the temperatures are taken, is located about 20 km (12 mi) south of the coast, so it detects temperatures a few degrees higher than the central and historic districts of the city, which are located on the coast. Here, the maximum temperature in July and August is around 30 °C (86 °F).
. Here are the average temperatures.
January, the coldest month of the year, is generally a mild month. The average temperature is of
12.5 °C, with a minimum of
7.2 °C and a maximum of
17.8 °C.

On the coldest nights of the month, the temperature usually drops to around
2.5 °C.

On the warmest days of the month, the temperature usually reaches around
24.5 °C.

Precipitation amounts to
60 mm, distributed over 9 days.
The day lasts on average 10 hours and 20 minutes.

There are on average 5.5 hours of sunshine per day. So, the sun shines 53% of the time.
The average humidity is 69%.
The average wind speed is of
11.7 kph.

The average sea temperature is of
17.4 °C. Therefore, the sea is cold for swimming.
February is generally a mild month. The average temperature is of
13 °C, with a minimum of
7.2 °C and a maximum of
18.8 °C.

On the coldest nights of the month, the temperature usually drops to around
3 °C.

On the warmest days of the month, the temperature usually reaches around
27.5 °C.

Precipitation amounts to
30 mm, distributed over 6 days.
The day lasts on average 11 hours and 0 minutes.

There are on average 6.5 hours of sunshine per day. So, the sun shines 61% of the time.
The average humidity is 66%.
The average wind speed is of
12.6 kph.

The average sea temperature is of
16.5 °C. Therefore, the sea is cold for swimming.
March is generally a very mild month. However, there are remarkable differences between night and day. The average temperature is of
16.1 °C, with a minimum of
9.6 °C and a maximum of
22.6 °C.

On the coldest nights of the month, the temperature usually drops to around
4 °C.

On the warmest days of the month, the temperature usually reaches around
32.5 °C.

Precipitation amounts to
30 mm, distributed over 6 days.
The day lasts on average 12 hours and 0 minutes.

There are on average 7.5 hours of sunshine per day. So, the sun shines 61% of the time.
The average humidity is 61%.
The average wind speed is of
13.4 kph.

The average sea temperature is of
16.4 °C. Therefore, the sea is cold for swimming.
April is generally a warm month. However, there are remarkable differences between night and day. The average temperature is of
19.5 °C, with a minimum of
12.5 °C and a maximum of
26.5 °C.

On the coldest nights of the month, the temperature usually drops to around
6.5 °C.

On the warmest days of the month, the temperature usually reaches around
37.5 °C.

Precipitation amounts to
15 mm, distributed over 3 days.
The day lasts on average 13 hours and 0 minutes.

There are on average 8.5 hours of sunshine per day. So, the sun shines 65% of the time.
The average humidity is 55%.
The average wind speed is of
15.3 kph.

The average sea temperature is of
17.3 °C. Therefore, the sea is cold for swimming.
May is generally a warm to hot month. However, there are remarkable differences between night and day. The average temperature is of
23.5 °C, with a minimum of
16.4 °C and a maximum of
30.6 °C.

On the coldest nights of the month, the temperature usually drops to around
11 °C.

On the warmest days of the month, the temperature usually reaches around
41.5 °C.

Precipitation amounts to only
5 mm, distributed over 2 days.
The day lasts on average 13 hours and 55 minutes.

There are on average 10 hours of sunshine per day. So, the sun shines 71% of the time.
The average humidity is 51%.
The average wind speed is of
16 kph.

The average sea temperature is of
19.4 °C. Therefore, the sea is very cool for swimming.
June is generally a warm to hot month. However, there are remarkable differences between night and day. The average temperature is of
27 °C, with a minimum of
19.8 °C and a maximum of
34.3 °C.

On the coldest nights of the month, the temperature usually drops to around
14 °C.

On the warmest days of the month, the temperature usually reaches around
44.5 °C.

Precipitation amounts to only
1 mm, and all occurs in one day.
The day lasts on average 14 hours and 20 minutes. So the days are long. June 21, the summer solstice, is the longest day of the year in the Northern Hemisphere.

There are on average 10 hours of sunshine per day. So, the sun shines 69% of the time.
The average humidity is 50%.
The average wind speed is of
15.4 kph.

The average sea temperature is of
22.5 °C. Therefore, the sea can be considered barely acceptable for swimming.
July is generally a very hot month. However, there are remarkable differences between night and day. The average temperature is of
28.6 °C, with a minimum of
21.4 °C and a maximum of
35.7 °C.

On the coldest nights of the month, the temperature usually drops to around
16.5 °C.

On the warmest days of the month, the temperature usually reaches around
44.5 °C.

Precipitation amounts to only
1 mm, distributed over 0 days.
The day lasts on average 14 hours and 5 minutes. So the days are long.

There are on average 11.5 hours of sunshine per day. So, the sun shines 82% of the time.
The average humidity is 52%.
The average wind speed is of
13.2 kph.

The average sea temperature is of
25.8 °C. Therefore, the sea is warm enough for swimming.
August, the hottest month of the year, is generally a very hot month. However, there are remarkable differences between night and day. The average temperature is of
29.4 °C, with a minimum of
22.4 °C and a maximum of
36.4 °C.

On the coldest nights of the month, the temperature usually drops to around
18 °C.

On the warmest days of the month, the temperature usually reaches around
43.5 °C.

Precipitation amounts to only
0 mm, so on average it never rains in the whole month.
The day lasts on average 13 hours and 20 minutes.

There are on average 11 hours of sunshine per day. So, the sun shines 82% of the time.
The average humidity is 54%.
The average wind speed is of
12.7 kph.

The average sea temperature is of
27.4 °C. Therefore, the sea is pleasantly warm and allows long swims.
September is generally a very hot month. The average temperature is of
27.6 °C, with a minimum of
21.3 °C and a maximum of
34 °C.

On the coldest nights of the month, the temperature usually drops to around
16 °C.

On the warmest days of the month, the temperature usually reaches around
42.5 °C.

Precipitation amounts to
15 mm, distributed over 2 days.
The day lasts on average 12 hours and 20 minutes.

There are on average 8.5 hours of sunshine per day. So, the sun shines 70% of the time.
The average humidity is 57%.
The average wind speed is of
13.5 kph.

The average sea temperature is of
27 °C. Therefore, the sea is pleasantly warm and allows long swims.
October is generally a warm to hot month. The average temperature is of
24.1 °C, with a minimum of
17.8 °C and a maximum of
30.5 °C.

On the coldest nights of the month, the temperature usually drops to around
12 °C.

On the warmest days of the month, the temperature usually reaches around
38.5 °C.

Precipitation amounts to
45 mm, distributed over 7 days.
The day lasts on average 11 hours and 20 minutes.

There are on average 7.5 hours of sunshine per day. So, the sun shines 64% of the time.
The average humidity is 59%.
The average wind speed is of
11.8 kph.

The average sea temperature is of
25.1 °C. Therefore, the sea is warm enough for swimming.
November is generally a warm month. The average temperature is of
18.3 °C, with a minimum of
12.5 °C and a maximum of
24.1 °C.

On the coldest nights of the month, the temperature usually drops to around
6.5 °C.

On the warmest days of the month, the temperature usually reaches around
33 °C.

Precipitation amounts to
60 mm, distributed over 7 days.
The day lasts on average 10 hours and 30 minutes.

There are on average 6 hours of sunshine per day. So, the sun shines 59% of the time.
The average humidity is 63%.
The average wind speed is of
11.3 kph.

The average sea temperature is of
22.5 °C. Therefore, the sea can be considered barely acceptable for swimming.
December is generally a mild month. The average temperature is of
13.8 °C, with a minimum of
8.5 °C and a maximum of
19.1 °C.

On the coldest nights of the month, the temperature usually drops to around
3 °C.

On the warmest days of the month, the temperature usually reaches around
25.5 °C.

Precipitation amounts to
70 mm, distributed over 9 days.
The day lasts on average 10 hours and 0 minutes. December 21, the winter solstice, is the shortest day of the year in the Northern Hemisphere.

There are on average 5.5 hours of sunshine per day. So, the sun shines 53% of the time.
The average humidity is 68%.
The average wind speed is of
12 kph.

The average sea temperature is of
19.5 °C. Therefore, the sea is very cool for swimming.