self-assembly 

https://doi.org/10.1351/goldbook.08206
Process whereby a system of single-molecule components spontaneously forms an organized structure, owing to molecular recognition.
Source:
PAC, 2022, 94, 353. (Glossary of terms used in physical organic chemistry (IUPAC Recommendations 2021)) on page 502 [Terms] [Paper]