The precise number and pattern of axonal connections generated during brain development regulates animal behavior. Therefore, understanding how developmental signals interact to regulate axonal extension and retraction to achieve precise neuronal connectivity is a fundamental goal of neurobiology. We investigated this question in the developing adult brain of Drosophila and find that it is regulated by crosstalk between Wnt, fibroblast growth factor (FGF) receptor, and Jun N-terminal kinase (JNK) signaling, but independent of neuronal activity. The Rac1 GTPase integrates a Wnt-Frizzled-Disheveled axon-stabilizing signal and a Branchless (FGF)-Breathless (FGF receptor) axon-retracting signal to modulate JNK activity. JNK activity is necessary and sufficient for axon extension, whereas the antagonistic Wnt and FGF signals act to balance the extension and retraction required for the generation of the precise wiring pattern.