An ore is a natural occurrence of rock or sediment which contains enough minerals with economically important elements, typically metals, that can be extracted from the deposit economically. The ores are extracted by mining for a profit from the earth; they are then refined (often by smelting) in order to extract the valuable elements.