In view of the current traffic congestion problem, if only rely on the traditional traffic light indication is no longer able to deal with road traffic congestion, so we need to adjust the traffic light indication time in real time according to the realtime traffic conditions on the road, so as to achieve the effective unblocking of intelligent traffic lights. This paper presents the design of intelligent traffic light system based on genetic algorithm to optimize Elman neural network. First of all, this design will take STM32F103 single chip microcomputer as the core to build the hardware circuit, including the collection of traffic flow, automatic control and feedback of the closed-loop control system. In terms of software design, this design builds a system program and processes the collected traffic flow information by optimizing Elman neural network algorithm based on genetic algorithm. According to the obtained results, the display time of traffic lights in the next cycle is changed, so as to achieve the purpose of regulating traffic flow and improving traffic.