Herein, we report the first example of controllable magnetoresistance in a semiconducting carbonized phthalonitrile resin. This special phenomenon is explained using the different ratios of graphite-like (sp2) and diamond-like (sp3) bonds and localization length (a0) as well as the density of states at the Fermi-level (N(EF)).