In order to enhance the positioning accuracy, a UWB positioning system based on genetic algorithm is proposed. Firstly, it uses the DW1000 module to measure the distance, and preprocesses the measured data to remove noise. Then, a positioning equation is established according to the processed distance information, and the genetic algorithm is used to solve the equation to obtain the coordinates of the unknown node. The experimental results show that the measured positioning accuracy is within 30 cm, which means that the system can obtain a good positioning effect and meet the need for precise positioning.