A heat wave occurs when a system of high atmospheric pressure moves into an area. In such a high-pressure system, air from upper levels of our atmosphere is pulled toward the ground, where it becomes compressed and increases in temperature.
This high concentration of pressure makes it difficult for other weather systems to move into the area, which is why a heat wave can last for several days or weeks.