Map from Google - Cairo_Giza

Cairo, metropolis of northern Egypt and capital of the country, has a subtropical desert climate, with very mild winters, and hot and sunny summers.
Here are the average temperatures.
Average temperatures - Cairo
Min (°C)91012151820222221171410
Max (°C)192024283234353433292520

The city is located near the large delta of the Nile River, where the presence of streams and cultivated fields increases relative humidity. Over the decades the city has expanded to the point of approaching even the pyramids of El Giza.
The hot desert wind, the Khamsin, blows especially in spring, bringing heatwaves, accompanied by dust and sand. Because of this wind, the temperature can exceed 40 °C from April to September, and reach 37/38 °C in April and October.
Rainfall is very scarce, since it amounts to about 25 millimetres per year. In the wettest years, it has slightly exceeded 100 mm. The rare rains occur in the form of showers, between autumn and spring, with a higher probability in winter. Being concentrated in time and falling on a dry soil, which is unable to absorb water, when they are intense they can cause flooding.
Here is the average precipitation.
Average precipitation - Cairo
Prec. (mm)54411000014625

Cairo, houses and pyramids in the background

Winter, from December to February, is very mild, with pleasant and sunny, spring-type days, since highs are usually about 20 °C. The rains are very rare, and may not even occur for a whole month. Every now and then, some days may be a bit cold, with minimum temperatures about 5 °C, and maximum about 10/13 °C, when cold air masses come from Eastern Europe.

Spring, from March to mid-May, is pleasantly warm and sunny, but there may be some hot days when the Khamsin blows. In March, at night it can still be a little cold, especially in the first half of the month.

Summer, from mid-May to mid-September, is hot and sunny. While in May and June waves of scorching heat are still quite frequent, the atmosphere progressively stabilizes and air humidity becomes higher, with an annoying combination of heat and humidity, whose climax is reached in August. Inside the big city, the heat is felt more, also because of pollution.

Autumn, from mid-September to November, is warm, and it's usually not excessively hot, although some hot days can still occur on early October, when the Khamsin blows, and then it becomes progressively milder, getting pleasantly warm in November.

The amount of sunshine in Cairo is very good all year round, since blue skies prevail in all seasons.

When to go

The best time to visit Cairo and the pyramids of Giza and Saqqara goes from October to March, to avoid the heat, which can occur, or are the norm, in the other months. In winter, especially in January and February, some days can be a bit cold and cloudy, while in March, and sometimes in October, the wind from the Sahara can blow, accompanied by dust and sand; therefore the best month is November, when this risk is lower. In summer, for example in August, the heat is less intense than in the south of Egypt, but to visit the pyramids under the blazing sun can be difficult; you can therefore choose the first hours of the day, although it's not easy to find a place in the best hours, given the presence of many tourists.