<p>In the development of intelligent cities, the automation of vehicular mobility is one of the strong points of research, where intelligent traffic lights stand out. It is essential in this field to prioritize emergency vehicles that can help save lives, where every second counts in favor of the transfer of a patient or injured person. This paper presents an artificial intelligence algorithm based on two stages, one is the recognition of emergency vehicles through a ResNet-50 and the other is a fuzzy inference system for timing control of a traffic light, both lead to an intelligent traffic light. An application of traffic light vehicular flow control for automatic preemption when detecting emergency vehicles, specifically ambulances, is oriented. The training parameters of the network, which achieves 100% accuracy with confidence levels between 65% with vehicle occlusion and 99% in direct view, are presented. The traffic light cycles are able to extend the green time of the traffic light with almost 50% in favor of the road that must yield the priority, in relation to not using the fuzzy inference system.</p>