Alkylation is one of the methods used to prepare amines. Direct alkylation of ammonia or a primary amine with an alkyl halide gives polyalkylated amines along with a quaternary ammonium salt through successive SN2 reactions. This process of making the quaternary salt through the direct alkylation method is called exhaustive alkylation.
Each alkylation step makes the nitrogen center more nucleophilic, which triggers successive alkylations until a quaternary ammonium salt is formed. Considering this, specific reaction conditions, such as excess ammonia, must be used to exclusively make primary amines.
Since tertiary halides are more hindered, they are not the substrates of choice for alkylation reactions. Although secondary alkyl halides are far less hindered and can be alkylated, they are also not preferred as substrates due to their tendency to undergo elimination reactions.
Since ammonia is cheaply available, alkylations using ammonia as the substrate are the most common.