The process involves the formation of a complex between a target molecule (template) and functional monomers. This complex is then polymerized in the presence of a cross-linker to form a solid matrix. After polymerization, the template molecule is removed, leaving behind a cavity that is complementary in shape and functional groups to the target molecule.