A pilot is generally required to follow an Air Traffic Control (ATC) clearance precisely; however, there are two critical legal exceptions under FAA and ICAO regulations. The first and most significant is an In-flight Emergency. Under 14 CFR 91.3, the Pilot in Command (PIC) has the final authority and may deviate from any rule or clearance to the extent required to meet that emergency. The second exception is Collision Avoidance. If a pilot receives a "Resolution Advisory" (RA) from their TCAS (Traffic Collision Avoidance System), they are required to follow the TCAS command—even if it contradicts their current ATC clearance—to avoid a mid-air collision. In either case, the pilot must notify ATC of the deviation as soon as possible. Outside of these life-safety scenarios, any deviation from a clearance without an official amendment is considered a "Pilot Deviation" and can result in an investigation or enforcement action by aviation authorities.