Under the right conditions, magma can cool in such a way as to form polygonal shapes that can be straight or bend and twist - we call these phenomena columnar joints. The Reynisfjall mountain in South Iceland is a good example of this phenomenon with both colonnades (straight regular ones) and entablatures (messy entanglement above).