The function of the respiratory system is to supply blood with oxygen in order for the blood to deliver oxygen to all parts of the body.