As layers built up on the bottom of the lake, compression and heat turned the mud to rock.