Mining produces a mixture of rocks that contain ore and rocks
The ore must be separated from unwanted rocks.
Then, the minerals need to be separated out of the ore.
The work is still not done once the mineral is separated from the unwanted materials.