To ensure survival in an ever-changing, complex world, animal behavior needs to be flexible and adaptive. Nervous systems have evolved to enable behavioral responses to a wide variety of sensory stimuli, but the adequate behavioral response to a given stimulus is highly context-dependent, and behavioral or internal states accordingly affect sensorimotor processing. For example, locomotion modulates responses of visual neurons, and hunger increases food-searching behavior and shifts taste preferences. Despite their ubiquitous importance, the neural mechanisms enabling context-dependent sensorimotor flexibility are not well understood. The Ache Lab for Sensorimotor Flexibility aims to discover fundamental principles of motor control, in particular with regard to sensorimotor flexibility, by leveraging the power of neurogenetics, electron microscopy-based circuit reconstruction, and in-vivo patch-clamp recordings in behaving Drosophila.