West Virginia's geologic history stretches back into the Precambrian, and includes several periods of mountain building and erosion. At times, much of what is now West Virginia was covered by swamps, marshlands, and shallow seas, accounting for the wide variety of sedimentary rocks found in the state, as well as its wealth of coal and natural gas deposits. West Virginia has had no active volcanism for hundreds of millions of years, and does not experience large earthquakes, although smaller tremors are associated with the Rome Trough, which passes through the western part of the state.
The basement rock of West Virginia was formed during the Grenville orogeny, approximately 1,140 to 980 million years ago, when the land mass today known as Laurentia, the ancestral North American craton, collided with other land masses to produce the supercontinent known as Rodinia. The heat and pressure of this collision melted the existing rock, some of which was pushed down into the mantle, while a high chain of mountains formed on the surface. As these mountains eroded, the underlying layers of granite and gneiss were pushed upward by heavier mantle rocks, and exposed at the surface. This Grenvillian basement rock underlies substantially all of the Appalachian region, from the Ohio valley to the sea, and extends north and south into eastern Canada and Mexico, as well as a part of the Scottish highlands.
Today, the crystalline igneous rocks of the Grenvillian basement form the core of the Blue Ridge Mountains, also known as the Pedlar formation, where they are exposed. To the west, they are hidden beneath the Valley and Ridge and Appalachian Plateau, while to the east they extend under the Piedmont, coastal plain, and continental shelf. Over hundreds of millions of years, erosion formed a layer of sediment known as the Swift Run formation, extending over substantially all of West Virginia. Although Rodinia began to break up between 850 and 750 million years ago, it was not until about 600 million years ago that the Iapetus Ocean began to open up between Laurentia and its neighbors along the region uplifted during the Grenville orogeny. At that time, the craton was rotated approximately 90° clockwise from its present orientation, and was located south of the equator. The rifting process thinned the crust and led to volcanic activity, resulting in a layer of basalt, today known as the Catoctin formation, burying the existing ridges and valleys.