The binding mechanism between 9-vinyladenine and pyrimidine base thymine in methanol was studied with UV-visible spectrophotometric method. Based on this study, using thymine as a template molecule, 9-vinyladenine as a novel functional monomer and diethylene glycol dimethacrylate as a new cross-linker, a specific diethylene glycol dimethacrylate-based molecularly imprinted polymeric membrane was prepared over a cellulose support. Then, the resultantly polymeric membrane morphologies were visualized with scanning electron microscopy and its permselectivity was examined using thymine, uracil, cytosine, adenine and guanine as substrates. This result showed that the imprinting polymeric membrane prepared with diethylene glycol dimethacrylate exhibited higher transport capacity for the template molecule thymine and its optimal analog uracil than other nucleic acid bases. The membrane also took on higher permselectivity than the imprinted membrane made with ethylene glycol dimethacrylate as a cross-linker. When a mixture including five nucleic acid bases thymine, uracil, cytosine, adenine and guanine passed through the diethylene glycol dimethacrylate-based thymine-imprinted polymeric membrane, recognition of the membrane for the template molecule thymine and its optimal analog uracil was demonstrated. It was predicted that the molecularly imprinted membrane prepared with diethylene glycol dimethacrylate as cross-linker might be applicable to thymine assay of absolute hydrolysates of DNA or uracil assay of absolute hydrolysates of RNA in biological samples because of its high selectivity for the template molecule thymine and its optimal analog uracil.