Capillaries connect the arteries to veins. The arteries deliver the oxygen-rich blood to the capillaries, where the actual exchange of oxygen and carbon dioxide occurs. The capillaries then deliver the waste-rich blood to the veins for transport back to the lungs and heart.