A more reactive metal is placed in contact with the metal . For example - Blocks of the more reactive magnesium metal are attached to an iron or steel object . As magnesium is more reactive than iron , it reacts and loses electrons instead of the iron