The skulls of the earliest tetrapods closely resembled those of their ancestors amongst the lobe-finned fishes. The skull roof is formed of a series of plate-like bones, including the maxilla, frontals, parietals, and lacrimals, among others. It is overlaying the endocranium, corresponding to the cartilaginous skull in sharks and rays. The various separate bones that compose the temporal bone of humans are also part of the skull roof series. A further plate composed of four pairs of bones forms the roof of the mouth; these include the vomer and palatine bones. The base of the cranium is formed from a ring of bones surrounding the foramen magnum and a median bone lying further forward; these are homologous with the occipital bone and parts of the sphenoid in mammals. Finally, the lower jaw is composed of multiple bones, only the most anterior of which (the dentary) is homologous with the mammalian mandible.