What earthquake caused the San Andreas Fault?

The 1906 San Francisco earthquake is the most famous earthquake to have occurred along the San Andreas Fault. It was a magnitude 7.8 earthquake that caused widespread destruction in the San Francisco Bay Area.