The invention discloses a method for preparing an indium/tellurium porous nanowire array, and belongs to the technical field of preparation of porous materials and nano materials. The method is characterized by comprising the following steps: preparing a porous anode alumina template (PAA) by using a two-step anodization method, preparing an electrolytic deposition solution consisting of a high-purity In salt or compound, a salt or compound of Te, a pH conditioning agent, an additive and deionized water, and performing electrochemical deposition on In and Te elements in pore canals of the alumina template by adopting a pulse electrochemical deposition technology, using the electrolytic deposition solution containing the In and Te elements and taking metal-sprayed PAA template as an anode and graphite as a cathode under certain deposition parameters and conditions, so as to finally obtain a one-dimensional ordered In/Te porous nanowire array. The method has the effects and benefits that the preparation is simple, the cost is low, and components and structures are easy to regulate and control; the array has a significant potential application prospect in fields of energy, catalysis, adsorption, thermoelectricity, optics, electrics and the like, and particularly has great values in application of sensors.