An electron-donating naphthalene diimide (NDI) derivative was synthesized and its thin films were endowed with good ambipolar semiconducting properties after being doped with the NDI.