In order to solve the inconvenient problem that the unmanned underwater vehicle equipped with water tank needs to manually adjust the water tank liquid level to make the vehicle in the state of neutral buoyancy before sailing,a method that can automatically adjust the balance liquid level of the vehicle is proposed. Combined with the tank structure of the vehicle,the attitude information of the vehicle and the information about tank liquid level are integrated through PID algorithm,and the water volume of the tank is adjusted to make the vehicle density approximate to the current water density,so as to find a solution that satisfies the neutral buoyancy balance attitude of the vehicle. According to MATLAB simulation analysis,the algorithm can realize the purpose of autonomous adjustment of balance levels.