The thin squamous epithelial cells of the alveoli are composed of Type I and Type II cells. Type I cells are very thin so that gases can diffuse rigidly through them. Type II cells are thicker. They synthesize and secrete a substance called surfactant. It lowers the surface tension in the alveoli and prevents pulmonary edema.