In this work, we present a new model to improve city traffic with the aim of reducing congestion and travel time. This model is inspired by the process used in task scheduling and load balancing problem in distributed systems to reduce makespan based on optimization methods such as ACO. The makespan in this case of application corresponds to the time wasted in traffic jams. The results obtained are satisfactory and confirm that it is necessary to optimize traffic congestion problems in smart cities in order to regulate the traffic flow and to inform drivers in real-time on the associated routes in order to fight congestion, energy waste and therefore generate less pollution.