The development of oligonucleotide nanoassemblies with small molecules has shown great potential in bio-medical applications. However, the interaction of negatively charged oligonucleotides with halogenated small molecules represents a scientific challenge. Here, we introduced a distinct allyl bromide halogenated scaffold, which exhibits specific interaction with adenine nucleic bases of the oligonucleotides, thus leading to the formation of self-assembled nanostructures.Graphical abstractSupplementary InformationThe online version contains supplementary material available at 10.1186/s11671-023-03846-0.