This page from the USGS resource This Dynamic Earth (online edition) describes the evolution of the western coast of North America. A series of block diagrams shows how the subduction zone along the west coast of North America transformed into the San Andreas Fault from 30 million years ago to the present.