Mucosa is the extensively folded innermost layer. It can be divided into the epithelium, lamina propria, and the muscularis mucosae, though some consider the outermost muscularis mucosae to be a distinct layer, as it develops from the mesoderm rather than the endoderm (thus making a total of five layers).