What caused the 1906 earthquake in San Francisco?

it was caused by the two plates in the earth that hit each other