A similar process happens when the rock is repeatedly wetted and dried as salt crystals dissolve from the rock then grow when it is dried. Both processes can result in the rocks being heaved so what was once a nice regular pattern of bricks set in a pavement will eventually become a chaotic jumble of bricks oriented every which way.