The walls of the alveoli are composed of two types of cells, type i and type ii alveolar cells. the function of type ii alveolar cells is to ________. the walls of the alveoli are composed of two types of cells, type i and type ii alveolar cells. the function of type ii alveolar cells is to ________.