In Gabriel synthesis, phthalimide is converted into its potassium salt, which reacts with an alkyl halide to form an N-alkyl phthalimide. On hydrolysis, this yields a primary amine. This method does not produce carboxylic acids, alcohols, or aldehydes.