Scotland has experienced its second hottest July on record, the Met Office has confirmed.
Only July 2006 has been hotter since statistics began in 1910.
People enjoyed temperatures about 2C higher than the average for July, with beaches packed. Hours of sunshine were about 45% above average.
The sizzling weather had a downside however, with thunderstorms caused by the heat meaning rainfall was about average.
On July 20, Tiree in the Inner Hebrides enjoyed the sunniest day across the whole of the UK, recording 15.9 hours of sunshine.
On that day temperatures also reached 30.5C in Dumfries and Galloway.
The forecast for this month looks gloomier, however, with clouds expected to return and temperatures over the next week to average at about 17C.
BBC Scotland weather presenter Christopher Blanchett said: “The prolonged spell of heat meant July 2013 was the second warmest July we’ve seen in Scotland, on records dating back to 1910. However, we also saw close to average rainfall.
“This was thanks to the torrential downpours towards the end of the month as high pressure lost it stranglehold and the latent heat injected extra energy into the atmosphere, allowing big thunder storms to soak us through.