Here, we report a new technique to synthesize carbon-doped MgB 2 powder. Chitosan was innovatively used as the carbon source during the synthesis of boron from boron oxide. This allowed the introduction of local defects, which later on served as pinning centers in MgB 2 , in the boron lattice itself, avoiding the traditional and time consuming ways of ex situ MgB 2 doping (e.g. ball milling). Two volume percentages of C-doping have been tried and its effect on the superconducting properties, evaluated by magnetic and transport measurements, are discussed here. Morphological analysis by scanning electron microscopy revealed nano-metric grains' distribution in the boron and MgB 2 powder. Mono-filamentary MgB 2 wires have been fabricated by an ex situ powder-in-tube technique by using the thus prepared carbon-doped MgB 2 and pure MgB 2 powders. Transport property measurements on these wires were made and compared with MgB 2 wire produced using commercial boron.