A heatwave is caused by a system of higher atmospheric pressure. In a high pressure system, air from upper levels of the atmosphere descends and rotates outward. As it comes down, it becomes compressed, which increases its temperature and dries it out.