Last month was the third warmest July on record, provisional figures show.
The mean average temperature across the UK was 17.2C, behind only the 2006 record of 17.8C and the 17.3C in 1983.
Much of the country endured a prolonged heatwave in July, with sizzling temperatures and weeks without rain.
But cooler temperatures and widespread thunderstorms at the end of the month meant no nationwide records were broken, according to the Met Office.
Northern Ireland ended up with 99 per cent of its average total rainfall for July thanks to torrential downpours over the weekend of July 28-29.
The UK as a whole had 71 per cent of its average rainfall, making it only the 16th driest July since records started in 1910.
However, the summer heatwave still took its toll on many parts of the country.
The dry spell was most prolonged in East Anglia and south-east England, where some places such as Heathrow and High Wycombe experienced 58 “dry days” in a row.
The Met Office defines a “dry day” as one with less than 1mm of recorded rainfall.
Broom’s Barn, near Bury St Edmunds, endured 51 days of no rain whatsoever – the longest this summer.
Dr Mark McCarthy, manager of the Met Office National Climate Information Centre, said: “The UK experienced its hottest ever May this year and its second hottest June. For a large part of July it looked as if we might see another record-breaking month, but lower temperatures in the north and west and the storms at the end of the month meant that was not the case.
“However, temperatures were well above average and rainfall much lower, particularly in parts of England, continuing the pattern of an unusually warm, dry summer overall.”
The highest temperature measured anywhere during the month was 35.3C on 26 July at Faversham in Kent.
The record all-time high for July was set in 2015 when 36.7C was measured at Heathrow in Greater London.
Scorching weather will return to parts of the UK later this week, with temperatures likely to hit 30C across southern England and Wales, according to the Met Office.
Northern and western areas will escape the worst of the heat and instead enjoy a mix of sunshine and showers.