Both metal oxides and non-metal oxides can react with acids or bases to form a salt and water. However, metal oxides are more likely to react with acids to form a salt and water, while non-metal oxides are more likely to react with bases to form a salt and water.
For example, metal oxide such as copper oxide (CuO) reacts with an acid (such as hydrochloric acid) to form copper chloride salt (CuCl2) and water. Non-metal oxide such as sulfur dioxide (SO2) reacts with a base (such as sodium hydroxide) to form sodium sulfite salt (Na2SO3) and water.