In medusae, mesoglea comprises the bulk of the animal and forms a resilient skeleton. In polyps, the water-filled coelenteron acts as a hydrostatic skeleton, which, in concert with the mesoglea, maintains the form of these animals. Muscles in cnidarians are extensions of the bases of ectodermal and endodermal cells.