In textile mills, quite a lot of dyes and chemicals are used. However some of these compounds change into wastewater. Textile wastewater usually with large volume is contaminated. This is the reason that recycling textile wastewater is a complex and difficult process. Dyes are the most pollutant compounds in this process. So, one of the most important goals in textile wastewater treatment is dye removal. There are different methods for dye removal such as coagulation methods, biological recycling, chemical oxidation, ion exchange and membrane processes. In recent years membrane processes for removing many kinds of pollutants in wastewater have been used extensively. Electrospinning is a process of electrostatic fiber formation by which electrical forces are used to produce polymer fibers from polymer solution, with nanometerscale diameters. Nanofibers have a large specific surface area and their nonwoven web have small pore size in comparison with commercial textiles. The extensive application in future of electrospinning nanofibers is filtration. In this study, optimized conditions to produce filters from Nylon 6 nanofibers are investigated. In electrospinning, carbon sublayer was put in the collecting drum and was used to collect nanofibers web. The feed water used in this study was a synthetic dyeing wastewater composed of C.I.Direct yellow 12 and NaCl. To carry out the experiments a crossflow filtration cell was designed and built. Membranes with an effective area of 40 cm 2 were used in the cell. Permeate and retentate were recycled to the feed solution to obtain a constant feed concentration. After providing crossflow filtration system, the effects of pressure and time of filtration on filtration efficiency, were studied. The best results were obtained from pressure of 1.75 bar and time of filtration of 60 minutes. To complete the work, the feed wastewater of the membrane system was pretreated by using a chemical coagulant and giving a residence time prier to filtration. To study the effect of the pretreatment process some experiments were carried out with different values of coagulant and residence time. The best result of filtration efficiency was obtained by 150 ppm of Alum coagulation material. In this condition efficiency of dye and salt removal and reduction percentage of COD were 98%, 29.3%, and 73.87%, respectively.