Functionalized nitrogen heterocyclic compounds, including benzodiazepines and azasugars, and synthetic methods for preparing such compounds. Nitrogen-containing heterocycles are prepared by reacting amino-carbonyl compounds that contain an amine moiety connected via a linker to a carbonyl moiety with an organoboron derivative.