Alveoli are tiny air sacs located at the ends of the bronchioles in the lungs. They are surrounded by blood capillaries and are the primary site of gas exchange. Oxygen diffuses into the bloodstream from the alveoli, while carbon dioxide moves from the bloodstream into the alveoli to be exhaled.