Buoyancyis a force that causes lighter materialtorise through surrounding densermaterial. Thehotliquid magmarisestowards the surfacethrough the more denserock.
The rest of the vertical column is made from a material called syntactic foam - a solid made mostly of hollow "microballoons" - giving it enough buoyancy to float back up.