In urban environments, traffic congestion is a major challenge that often delays emergency vehicles such as ambulances, leading to critical situations for patients. Conventional traffic control systems operate on pre-programmed timers, making them inefficient in emergency scenarios. This paper proposes an intelligent ambulance and traffic control system using Raspberry Pi, which dynamically manages traffic lights based on real-time ambulance detection. The system integrates IoT, GPS, RF communication, and image processing to identify ambulances, alter traffic signals, and provide the fastest route to the nearest hospital. The proposed system employs Raspberry Pi as a central controller to communicate with traffic lights, ensuring green corridor clearance for emergency vehicles. The system also utilizes cloud-based data analytics to enhance efficiency. This research presents an innovative smart city application that significantly improves emergency response times and reduces fatalities.