Rabat features a Mediterranean climate (''Csa'') with warm to hot dry summers and mild damp winters. Located along the Atlantic Ocean, Rabat has a mild, temperate climate, shifting from cool in winter to warm days in the summer months. The nights are always cool (or cold in winter, it can reach sub  sometimes), with daytime temperatures generally rising about . The winter highs typically reach only  in December–February. Summer daytime highs usually hover around , but may occasionally exceed , especially during heat waves. Summer nights are usually pleasant and cool, ranging between  and  and rarely exceeding . Rabat belongs to the sub-humid bioclimatic zone with an average annual precipitation of .