Columnar restriction of neurites is critical for forming nonoverlapping receptive fields and preserving spatial sensory information from the periphery in both vertebrate and invertebrate nervous systems, but the underlying molecular mechanisms remain largely unknown. Here, we demonstrate that Drosophila homolog of α-neurexin (DNrx) plays an essential role in columnar restriction during L4 axon branching. Depletion of DNrx from L4 neurons resulted in misprojection of L4 axonal branches into neighboring columns due to impaired ephrin clustering. The proper ephrin clustering requires its interaction with the intracellular region of DNrx. Furthermore, we find that Drosophila neuroligin 4 (DNlg4) in Tm2 neurons binds to DNrx and initiates DNrx clustering in L4 neurons, which subsequently induces ephrin clustering. Our study demonstrates that DNrx promotes ephrin clustering and reveals that ephrin/Eph signaling from adjacent L4 neurons restricts axonal branches of L4 neurons in columns.