The air pressure also decreases with altitude. This is because the weight of the air above pushes down on the air below, creating pressure. As you climb higher, there is less air above to push down, so the pressure decreases.
The combination of lower air density and lower air pressure makes the air at the peak of a mountain thinner than the air at sea level. This can make it more difficult to breathe, and can cause altitude sickness.