Solidified lava

Why does solidified lava form this shape: What is the linkage between plate
tectonics and the type of volcanic activity in a location?