This document proposes a dynamic vehicular traffic control system using ant colony optimization and optimized traffic lights. It aims to reduce traffic congestion in urban areas. The system divides the road network into cells and uses artificial ants to guide vehicles along the least congested paths within each cell. It also proposes a new method for optimizing traffic light timing at intersections based on real-time vehicle count data collected from vehicles and traffic lights using VANET technology. Simulation results using the DIVERT simulator show that the proposed traffic light optimization method improves average vehicle speed and reduces waiting times and stopped vehicles at intersections compared to a system with usual fixed-duration traffic lights.