When a metal is to be extracted from its ore