Some metal oxides, such as aluminium oxide (Al2O3) and zinc oxide (ZnO), are amphoteric, meaning they can react with both acids and bases.
When an amphoteric oxide reacts with hydrochloric acid, it forms a salt and water. For example, when aluminium oxide reacts with hydrochloric acid, it forms aluminium chloride and water:
Al2O3 + 6HCl → 2AlCl3 + 3H2O
When an amphoteric oxide reacts with aqueous sodium hydroxide, it forms a metal hydroxide and water. For example, when aluminium oxide reacts with aqueous sodium hydroxide, it forms aluminium hydroxide and water:
Al2O3 + 3NaOH + 3H2O → 2Al(OH)3 + 3Na+
Therefore, while amphoteric oxides will react with hydrochloric acid to form salts, they will not react with aqueous sodium hydroxide to form salts.