A cyclobarbital-imprinted polymer was prepared using a fluorescent functional monomer, 2,6-bis(acrylamido)pyridine, and the polymer showed not only selective binding of cyclobarbital but also enhancement of fluorescence intensity, suggesting that the polymer could be utilized as a selective fluorescence probe.