What is the mineral or earthy substance associated with metallic ore called?

gangue — The mineral or earthy substance associated with metallic ore. (Webster's 1913.)

Sources