When metals react with acids, they undergo a redox reaction. A redox reaction occurs when both oxidation and reduction take place at the same time. A redox reaction occurs when electrons are transferred.