The ultrastructure of the nervous system has been studied in sexually mature Nybelinia surmenicola (Cestoda: Trypanorhyncha) from the intestine of a shark Lamna ditropis. The central nervous system (CNS) reveals a complex organization within cestodes and corresponds to the trypanorhynch pattern of brain architecture. The brain of N. surmenicola is differentiated into nine clearly defined lobes and semicircular, median, and X‐shaped cruciate commissures. A specific feature is the presence of a powerful extracellular capsule that surrounds the brain lobes with the cortical glial cells. Moreover, the architecture of the anterior lobes clearly distinguishes the species of Tentacularioidea. The neurons of the anterior lobes form compact groups looking like frontal horns. There are approximately 120 neurons in the anterior lobes and a preliminary estimate of more than 300 perikarya in the brain. Several ultrastructural types of neurons have been identified, differing in the size and shape of the soma, the density of the cytoplasm, and the ultrastructure of synaptic vesicles. Numerous synapses involving clear and electron‐dense vesicles have been observed in neuropils. Two types of glial cells have been found in the brain that participate in neuronal metabolism and wrap around the giant axons, brain lobes, neuropil compartments, and the main nerve cords. Such a powerful extracellular fibrillar brain capsule has not been observed in the brain of other studied cestodes and has been demonstrated in this study for the first time. The differentiation of the brain lobes reveals the important role of the rhyncheal system in the evolution of cestodes and correlates with their behavior. The anterior nerves arising from the anterior lobes innervate the radial muscles stabilizing the position of the tentacle sheaths and movements of the attachment organs. The nervous system anatomy and the brain architecture may reflect the morphofunctional aspects of the tapeworm evolution.