When alkyl halides react with sodium in the presence of anhydrous ether then alkanes are formed. This reaction is called Wurtz's reaction. CH3Br+2Na+BrCH3 Ether CH3⋅CH3+2NaBr
When methyl iodide and ethyl iodide react with sodium in ethereal solution, a mixture of propane, ethane, and butane is obtained as follows
Methane cannot be prepared by this method.