An ore is a type of rock that contains sufficient minerals with important elements including metals that can be economically extracted from the rock. The ores are extracted from the earth through mining; they are then refined (often via smelting) to extract the valuable element, or elements.