This is a common chemical reaction, especially with strong acids like hydrochloric acid (HCl) and sulfuric acid (H₂SO₄). The metal reacts with the acid, releasing hydrogen ions (H⁺) from the acid and forming a metal salt. The hydrogen ions then combine to form hydrogen gas.
Here's a simple example:
Zinc (Zn) + Hydrochloric Acid (HCl) → Zinc Chloride (ZnCl₂) + Hydrogen Gas (H₂)
It's important to note that not all metals react with acids to produce hydrogen gas. Some metals, like copper and silver, are less reactive and require stronger acids or specific conditions to react.