The mesoglea is a gelatinous, non-cellular layer situated between the epidermis and gastrodermis. It functions as a hydrostatic skeleton, providing structural support and aiding in buoyancy. The mesoglea also plays a role in the distribution of nutrients and waste products between the two tissue layers.