In order to obtain both flame retardant and antibacterial properties for textiles, the composite functional agent for cotton-viscose blended fabrics was synthesized from comb-like silicon-phosphor-nitrogen synergistic flame retardant-antibacterial agent. The treatment process of cotton-viscose blended fabrics was optimized through single factor experiment, and fabric structure and performance were analyzed using infrared spectrometer, vertical combustion instrument, limit oxygen index (LOI) tester, scanning electron microscope, energy dispersive X-ray spectrometer, thermogravimetric analysis, and so on.The results show that the optimal processing parameters are 500 g/L flame retardant antibacterial agent and 150 g/L 2-phosphonobutane-1,2,4-tricarboxylic acid (PBTCA), soaking at 50 ℃ for 40 min, two dip and two roll, pre-drying at 70 ℃ for 5 min, and curing at 130 ℃ for 150 s. The LOI value of the treated cotton-viscose blended fabrics was above 28%, and the after-flame time and after-glow time were both 0 s. The dense carbon layer with Si, P and N elements enriched on the surface of the fabrics after combustion was 40.16% at 800 ℃. The antibacterial rates of treated cotton-viscose blended fabrics againstEscherichia coli and Staphylococcus aureus were 99.05% and 95.52%, respectively, indicating good flame retardant and antibacterial property.