An ore is a natural occurrence of rock or sediment that contains sufficient minerals with economically important elements, typically metals, that can be economically extracted from the deposit. The ores are extracted at a profit from the earth through mining; they are then refined (often via smelting) to extract the valuable element, or elements.
The ore grade, or concentration of an ore mineral or metal, as well as its form of occurrence, will directly affect the costs associated with mining the ore. The cost of extraction must thus be weighed against the metal value contained in the rock to determine what ore can be processed and what ore is of too low a grade to be worth mining. Metal ores are generally oxides, sulfides, silicates, or native metals (such as native copper) that are not commonly concentrated in the Earth's crust, or noble metals (not usually forming compounds) such as gold. The ores must be processed to extract the elements of interest from the waste rock and from the ore minerals. Ore bodies are formed by a variety of geological processes. The process of ore formation is called ore genesis.