The invention discloses a heat-resistant and flame-retardant nylon tube. The heat-resistant and flame-retardant nylon tube is prepared from nylon 66, nylon 6, polymethylhydrosiloxane, epoxy resin, titanate coupling agent modification nano-zinc oxide, modification needle-like wollastonite, an amination carbon nano-tube, nano-silicon dioxide, red phosphorus, melamine cyanurate, organic nano-montmorillonite, glass fibers, magnesium borate whiskers, basic zinc carbonate nanofibers, ethylene-propylene-diene monomer, ethylene-bis-stearamide, calcium pimelate, zinc pimelate, silane coupling agent, aluminum diethylphosphinate and lanthanum stearate. The heat-resistant and flame-retardant nylon tube is good in heat resistance and flame retardancy, high in strength and excellent in impact resistance, and a nylon tube formed by the heat-resistant and flame-retardant nylon tube is good in overall performance and long in service life.