Distinct classes of GABAergic synapses are segregated into subcellular domains (i.e., dendrite, soma, and axon initial segment-AIS), thereby differentially regulating the input, integration, and output of principal neurons. In cerebellum, for example, basket interneurons make exquisitely precise "pinceau synapses" on AIS of Purkinje neurons, but the underlying mechanism is unknown. Using BAC transgenic reporter mice, we found that basket axons always contacted Purkinje soma before innervating AIS. This synapse targeting process followed the establishment of a subcellular gradient of neurofascin186 (NF186), an L1 family immunoglobulin cell adhesion molecule (L1CAM), along the Purkinje AIS-soma axis. This gradient was dependent on ankyrinG, an AIS-restricted membrane adaptor protein that recruits NF186. In the absence of neurofascin gradient, basket axons lost directional growth along Purkinje neurons and precisely followed NF186 to ectopic locations. Disruption of NF186-ankyrinG interactions at AIS reduced pinceau synapse formation. These results implicate ankyrin-based localization of L1CAMs in subcellular organization of GABAergic synapses.