What makes Yosemite valley?

Stand at the edge of Yosemite Valley and you're looking at one of the planet's most dramatic rooms — sheer granite walls rising three thousand feet, waterfalls thin as ribbons dropping from the sky, a flat meadow floor so smooth it looks drawn with a ruler. How does nature carve something this weird and perfect?
The story starts a hundred million years ago, when the Sierra Nevada was just a lump of molten rock cooling slowly underground. As it cooled, it cracked into giant rectangular blocks — like mud drying into tiles, but each tile the size of a mountain. That cooled granite is still here. It's the walls you're looking at.
