Heating alkyl halides with sodium hydroxide or water gives alcohols. Reaction with alkoxides or aroxides give ethers in the Williamson ether synthesis; reaction with thiols give thioethers. Alkyl chlorides readily react with amines to give substituted amines. Alkyl chlorides are substituted by softer halides such as the iodide in the Finkelstein reaction. Reaction with other pseudohalides such as azide, cyanide, and thiocyanate are possible as well. In the presence of a strong base, alkyl chlorides undergo dehydrohalogenation to give alkenes or alkynes.