In this paper, aluminium foil with a tunnel structure was used as a cathode to prepare a lithium iron phosphate composite by electrochemical deposition using propylene carbonate as the electrolyte solvent, and lithium nitrate, ferric nitrate and phosphoric acid as raw materials. The results show that the positive electrode composite is composed of a mixture of an olivine structured LiFePO4 and polyanion Li9Al3P8O29. The chemical composition of the mixture is related to the voltage of the electrochemical deposition and the acidity of the electrolyte solution. For a voltage of 1.8V and pH of 1.0, the composite material deposited in the tunnel of the aluminium foil takes the form of a one-dimensional nanotube, with a particle size ranging from 80nm to100nm. The composite material is closely combined with the aluminium foil. The aluminium foil can be directly used as a positive current collector, with a lithium sheet as the negative electrode. After mounting into a battery, an electrochemical performance test is performed. The battery test results show an initial discharge capacity of 95mAh/g, 79mAh/g and 59mAh/g at 0.1C, 0.2C and 0.5C, respectively. After the material is doped with magnesium and cobalt, the initial discharge capacity of the battery is 100mAh/g and 130mAh/g, respectively, at a rate of 0.1C. The cyclic voltammetry analysis of the battery show that after electrochemical deposition of the element, the symmetry between the oxidation and reduction peaks is increased, and the difference between the oxidation and reduction peak potentials is reduced. Element doping improves battery cycle performance. The AC impedance analysis show that the embedding impedance for lithium ions at the SEI interface is reduced from 300Ω to 250Ω, 100Ω after doping with magnesium, and cobalt. And the reaction mechanism of electrochemical deposition is discussed.