Nitric acid reacts with most metals. This characteristic has made it a common agent to be used in acid tests.
Very dilute nitric acid acts as a typical acid to react with active metals. For example, strongly electropositive metals, such as magnesium react with nitric acid as with other acids, reducing hydrogen.