In both cases, the cooling surface of the mass of hot lava cracked in a hexagonal pattern in a similar way to drying mud cracking as it shrinks. These cracks slowly extended down into the mass of lava as it cooled and shrank to form the columns, which were later exposed by erosion.