A novel electron acceptor building block, N,N′-dialkoxynaphthalenediimide (NDIO), is synthesized and used to develop an n-type polymer semiconductor.