The males of Carabus lefebvrei produce sperm bundles of quite variable size as a consequence of a sexual selection via sperm competition. The ultrastructural features of spermatogenesis of the species and the sequence of events leading to sperm bundle formation along the deferent duct lumen revealed the origin and evolution of the apical structure protecting the sperm bundles. Elongated layers of the electron-dense material of variable size and thickness are visible over the microvilli of the distal deferent duct epithelium. They likely correspond to sections through different levels of discoidal secretions. Then, the sperm present in the duct lumen attach to one side of such elongated secreted structures. Later on, these structures bent to take a cap shape and increase their size and thickness by apposition of additional secretions produced by the proximal deferent duct epithelium. These results reconcile the different opinions about the formation of the structures called the cap and the rod (spermatostyle). In our work, we in fact obtained evidence that both these structures have the same origin, even though at the end of their formation they exhibit a different appearance. The reported results indicate that, differently from the spermatostyle, in the initial stages of cap formation, the sperm adhere only to one side of the cap rather than around the whole structure, as it occurs instead along the spermatostyle rod. Under this aspect, the cap structure is similar to the protection present in the sperm of some whirligig beetle.