At the lungs exchange of carbon dioxide and oxygen takes place in alveoli. This process takes place by the process of diffusion. In lungs pressure of carbon dioxide is greater than pressure of carbon dioxide in air. Therefore carbon dioxide diffuses out of the alveoli. The oxygen first diffuses in fluid present in the walls of alveoli and then into the blood.