Boyle's law
Suppose you have a tank that contains a certain volume of gas at a certain pressure. When you decrease the volume of the tank, the same number of gas particles is now contained in a smaller space. Therefore, the number of collisions increases. Therefore, the pressure is greater.