A three-component strategy starting from isocyanides allows a straightforward synthesis of five-membered ring heterocycles. New cascades were developed involving the addition of a nitrogenated nucleophile an azide or a tetrazole on isocyanide dibromides, an electrocyclization, and a Suzuki coupling, which afford new accesses to tetrazole and triazole scaffolds.