 As the hot magma cooled, solidified, and came in contact with water, minerals with similar melting temperatures tended to concentrate together.As the magma solidified, gold became concentrated within hydrous silica solutions and was deposited within veins of quartz.As the Sierra Nevada and other mountains in California were forced upwards by the actions of tectonic plates, the solidified minerals and rocks were raised to the surface and subjected to erosion.