Geology of the Yosemite area
The exposed geology of the Yosemite area includes primarily granitic rocks with some older metamorphic rock. The first rocks were laid down in Precambrian times, when the area around Yosemite National Park was on the edge of a very young North American continent.
Source: Wikipedia — Geology of the Yosemite area (CC BY-SA 4.0)