An oxide act as a base when it reacts with an acid and acts as an acid when it reacts with a base. Identify the type of oxide.
Amphoteric oxides
Amphoteric oxides are metallic oxides, which show both basic as well as acidic properties. When they react with an acid, they produce salt and water, showing basic properties. When they react with alkalis, they form salt and water showing acidic properties.
For example, Al2O3 is an amphoteric oxide. When it reacts with HCl, it acts as a base to form AlCl3 and water. When it reacts with NaOH, it acts as an acid to form NaAlO2 and water.