Background Motor learning is central to human existence, such as learning to speak or walk, sports moves, or rehabilitation after injury. Evidence suggests that all forms of motor learning share an evolutionarily conserved molecular plasticity pathway. Here, we present novel insights into the neural processes underlying operant self-learning, a form of motor learning in the fruit fly Drosophila. Methods We operantly trained wild type and transgenic Drosophila fruit flies, tethered at the torque meter, in a motor learning task that required them to initiate and maintain turning maneuvers around their vertical body axis (yaw torque). We combined this behavioral experiment with transgenic peptide expression, CRISPR/Cas9-mediated, spatio-temporally controlled gene knock-out and confocal microscopy. Results We find that expression of atypical protein kinase C (aPKC) in direct wing steering motoneurons co-expressing the transcription factor FoxP is necessary for this type of motor learning and that aPKC likely acts via non-canonical pathways. We also found that it takes more than a week for CRISPR/Cas9-mediated knockout of FoxP in adult animals to impair motor learning, suggesting that adult FoxP expression is required for operant self-learning. Conclusions Our experiments suggest that, for operant self-learning, a type of motor learning in Drosophila, co-expression of atypical protein kinase C (aPKC) and the transcription factor FoxP is necessary in direct wing steering motoneurons. Some of these neurons control the wing beat amplitude when generating optomotor responses, and we have discovered modulation of optomotor behavior after operant self-learning. We also discovered that aPKC likely acts via non-canonical pathways and that FoxP expression is also required in adult flies.