The phosphorus-containing flame retardant that can enter the interior of cotton fiber and has self-crosslinking ability was designed and synthesized. The flame retardant contains two components, 2-(1-(dimethoxy phosphoryl)-2,5, 8-Triazectridecyl) phosphonate starch (PTPS) and 4-(hydroxymethyl)-10-((3-((5-(hydroxymethyl)-10-((3-((tris(hydroxymethyl)phosphonio)methyl)ureido)methyl)-2,6,8,12,14,18-hexaaza-4,10,16-Triphosphanonadecane (BPTP). The structure of PTPS and BPTP were detected by NMR and FTIR, and the results showed that the synthesis of PTPS and BPTP was successful. During the treatment, cellulose was first endowed with -NH groups. Then PTPS molecule and BPTP molecule were grafted onto cellulose through the reaction of P-CH2-OH groups and -NH groups. After 50 laundering cycles (NFPA2112-2012 standard), the limiting oxygen indexes (LOIs) of the fabrics treated with 35 wt% CFN-PB and 30 wt% CFN-PB were 28.80 % and 27.30 %, respectively, and passed the vertical flame test (VFT). Compared with the raw cotton, the peak heat release rate (PHRR), the total heat rate (THR) and the flame growth rate (FGR) of the CNF-PB treatment fabric were reduced by 62.90%, 29.43% and 62.91% respectively. These indicate that the flame retardant PB could be firmly fixed on the fibers and show good flame retardancy durability. In the VFT, and cone calorimetry test, the CFN-PB treated fabric showed the condensed phase flame retardant mechanism.