Alkyl halides are organic compounds containing one or more carbon-halogen bonds. They can be prepared from alkanes, alkenes, and alcohols using free radical halogenation, addition reactions, or by treating alcohols with reagents like thionyl chloride or phosphorus tribromide. Alkyl halides undergo nucleophilic substitution and elimination reactions. Nucleophilic substitution can proceed by an SN1 or SN2 mechanism depending on the substrate and conditions. The SN1 mechanism involves formation of a carbocation intermediate while SN2 is a concerted bimolecular process. Elimination reactions generate alkene products and compete with substitution. Alkyl halides are versatile