Depending upon their structure, azo- and anthraquinonic dyes are the two major classes and together represent 90% of all organic colorants. Adsorption of dye molecules onto a sorbent can be an effective, low-cost method of color removal. Most of the techniques used for removal of dyes are of high production cost, and the regeneration also makes them uneconomical. There is much interest in the development of cheaper and effective newer materials for use as adsorbents. Molecular imprinting is a new kind of materials that can be alternative adsorbents. In this study, molecularly imprinted polymers of three textile dyes (Cibacron Orange P-4R, Cibacron Red P-4B, Cibacron Black PSG) were prepared. Methacrylic acid was used as a monomer for red and orange dyes and acrylamide was used for black dye. Methanol:acetonitrile was used as a porogen. The selective recognition ability of the molecularly imprinted polymers was studied by an equilibrium-adsorption batch method. The adsorption data are for Cibacron Black PSG 65% and nonimprinted polymer (NIP) 25%; Cibacron Red P-4B 72% and NIP 18%; and Cibacron Orange P-4R 45% and NIP 10%, respectively. Dye-imprinted polymers were used as a solid-phase extraction material for selective adsorption from wastewater of textile factory.