There are three states in which a matter can be found.
Solid
Liquid
Gas
Gases
Gases are having the weakest intermolecular force of attraction and their particles are in continuous random motion and collide with each other and strike the walls of the container.
The structure of gas is shown below:
These collisions with the walls of the container imply that gases exert pressure.
The compression of gas by applying pressure is shown in the diagram given below: