Preparation of ethers by reactions not forming ether-oxygen bonds by elimination of halogens, e.g. elimination of HCl