The distribution of minerals in the Earth's crust and the processes that concentrate them in specific locations.