A facile and selective synthesis of N-substituted 2-aminopyridines is accomplished via microwave-assisted multi-component reactions controlled by the basicity of amine and the nature of solvent. In addition, a possible mechanism accounting for the reaction was proposed.