The invention discloses a method for preparing a tungsten oxide filled phthalic acid nano tube. The method comprises the following processes of: 1, performing dipping and filling by using capillarity: selecting a purchased or self-made phthalic acid nano tube, adding 10 to 50 milliliters of deionized water and 0.5 to 10 grams of sodium tungstate (NaWO4.2H2O) into the phthalic acid nano tube, performing full stirring and dissolution, performing ultrasonic treatment for 0.5 to 5 hours, and stirring the solution for 1 to 40 hours; 2, sealing the tube: adding 5 to 20 milliliters of 0.1 to 2mol/L HCl into the solution, and quickly stirring the solution for 3 to 10 minutes at the revolution speed of 700 to 1,000rpm; and 3, performing reaction in the tube: transferring the suspension to a centrifugal tube, centrifuging the suspension for 5 to 20 minutes at the centrifuging speed of 4,000 to 8,000rpm, pouring the centrifuged solution, adding the sediment into 5 to 20 milliliters of 1 to 2mol/L HCl, continuously performing reaction for 1 to 5 hours with stirring to react the un-reacted sodium tungstate in the tube into tungstic acid, washing the product for 1 to 5 times by using deionized water and 1 to 3 times by using alcohol to remove the sodium tungstate outside the nano tube after the reaction is completed, and finally drying the product at the temperature of between 60 and 80 DEG C to obtain a one-dimensional composite nano material, namely the tungsten oxide filled phthalic acid nano tube product.