The geologic story of Yosemite National Park can be considered in two parts: (1) deposition and deformation of the metamorphic rocks and emplacement of the granitic rocks during the Paleozoic and Mesozoic; and (2) later uplift, erosion, and glaciation of the rocks during the Cenozoic to form today's landscape.
[{"rock_types": "granitic", "era_formed": ["Mesozoic", "Paleozoic ", "Paleozoic and Mesozoic"]}]
[{"rock_types": "metamorphic", "era_formed": "Paleozoic and Mesozoic"}, {"rock_types": "granitic", "era_formed": "Paleozoic and Mesozoic"}] [{"rock_types": "granitic rocks", "era_formed": "Paleozoic and Mesozoic"}] [{"rock_types": "granitic", "era_formed": "Paleozoic "}, {"rock_types": "granitic", "era_formed": "Mesozoic"}, {"rock_types": "n/a", "era_formed": "Cenozoic"}]