Devil's Postpile columnar basalt
Basalt is a fine-grained rock of volcanic origin. It is an igneous rock, which means it has cooled from a molten state.
Columnar basalt is formed when a thick lava flow cools. If the cooling is relatively fast, considerable horizontal contraction occurs and causes cracks. Extensive fracturing causes columns to form. Hexagons are the most common because they fit together efficiently without vacant space, but pentagonal, heptagonal, and octagonal joint patterns are also known.
Some places you can see columnar basalt are:
Devil's Postpile, California
Devil's Tower, South Dakota
The Giant's Causeway, Ireland
Samson's Ribs, Scotland
The background photo is the top of the columns at Devil's Postpile