Type I pneumocytes are flat cells that cover about 95% of the alveolar surface and are integral to the gas exchange process. Type II pneumocytes are more cuboidal and secrete surfactant, which reduces surface tension within the alveoli and prevents collapse during exhalation.