Just as the Wright brothers implemented controls to achieve stable airplane flight, flying insects have evolved behavioral strategies that ensure recovery from flight disturbances. Pioneering studies performed on tethered and dissected insects demonstrate that the sensory, neurological, and musculoskeletal systems play important roles in flight control. Such studies, however, cannot produce an integrative model of insect flight stability because they do not incorporate the interaction of these systems with free-flight aerodynamics. We directly investigate control and stability through the application of torque impulses to freely flying fruit flies (Drosophila melanogaster) and measurement of their behavioral response. High-speed video and a new motion tracking method capture the aerial "stumble," and we discover that flies respond to gentle disturbances by accurately returning to their original orientation. These insects take advantage of a stabilizing aerodynamic influence and active torque generation to recover their heading to within 2°in <60 ms. To explain this recovery behavior, we form a feedback control model that includes the fly's ability to sense body rotations, process this information, and actuate the wing motions that generate corrective aerodynamic torque. Thus, like early man-made aircraft and modern fighter jets, the fruit fly employs an automatic stabilization scheme that reacts to short time-scale disturbances.flight control | insect flight | stability | perturbation | fruit fly L ocomotion through natural environments demands mechanisms that maintain stability in the face of unpredictable disturbances. Behavioral strategies play a particularly important role in controlling the flight of insects (1-7), because even gentle air currents can cause large disruptions to the intended flight path. Insects must also contend with the intrinsic instability of flapping flight (8, 9) and the large fluctuations in aerodynamic forces caused by slight variations in wing motions (10, 11). Corrective behavior often takes advantage of vision (1, 2). For fruit flies, however, reaction time to visual stimuli is at least 10 wingbeats (12), so these insects must employ faster sensory circuits to recover from short time-scale disturbances and instabilities. To probe this fast control strategy, we devised an experimental method that imposes impulsive mechanical disturbances (6, 13) to flying insects while allowing us to measure relevant aspects of flight behavior. We first glue tiny ferromagnetic pins to fruit flies and image their free flight using three orthogonally oriented highspeed video cameras (Methods and SI Text). When a fly enters the filming volume, an optical trigger detects the insect, initiates recording, and activates a pair of Helmholtz coils that produce a magnetic field. The field and pin are both oriented horizontally, so the resulting torque on the pin reorients the yaw, or heading angle, of the insect (Fig. 1). We then use a new motion tracking technique to extract the three-dimensional body and w...