A double displacement reaction, also known as a double replacement or metathesis reaction, occurs when the anions and cations of two different compounds exchange places to form two new compounds. This type of reaction often takes place in aqueous solutions and typically results in the formation of a precipitate, gas, or water, especially when one of the products is insoluble in the solution.