When high temperature magma flows into the sea, the seawater causes the surface of the magma to cool and harden rapidly. When magma under this crust is still liquid it can break through to form pillow lava. If pillow lava becomes fragmented, the result is pillow breccia.