In the first part, we will focus on the principles of self-assembled molecular network formation at the liquid-solid interface on surfaces such as graphite, MoS2, and graphene. Then we will discuss how lateral confinement, induced by covalent functionalization of graphite and graphene, affects self-assembly. Several strategies will be demonstrated to realize two-dimensional lateral confinement, all based on the covalent modification of the surface, making use of bottom-up approaches or a combination of bottom-up and top-down approaches. The impact of these various types of confinement on the formation of self-assembled molecular networks will be discussed, including aspects such as nucleation and growth, directional self-assembly, on-surface chirality, polymorphism, and reactivity.In a second part, we will focus on the formation of porous two-dimensional covalent organic frameworks at the liquid-solid interface, and reveal various interesting aspects at the molecular level such as nucleation and growth mechanisms, and the impact local electric fields may have on (de)polymerization processes.The relevance and importance of scanning probe microscopes to investigate (and control) self-assembly and reactivity on surfaces will be illustrated. C. Rodríguez González, A. Leonhardt, H. Stadler, S. Eyley, W. Thielemans, S. De Gendt, K. S. Mali, S. De Feyter, ACS Nano, 2021, 15, 10618–10627Verstraete, S. De Feyter, Chem. Soc. Rev., Chemical Society Reviews, 2021, 50, 5884–5897Bragança, A. Minoia, R. Steeno, J. Seibel, B. E. Hirsch, L. Verstraete, O. Ivasenko, K. Müllen, K. S. Mali, R. Lazzaroni, S. De Feyter, J. Am. Chem. Soc., 2021, 143, 11080–11087Tahara, Y. Kubo, S. Hashimoto, T. Ishikawa, H. Kaneko, A. Brown, B. E. Hirsch, S. De Feyter, Y. Tobe, J. Am. Chem. Soc., 2020, 142, 7699–7708Zhan, Z.-F. Cai, M. Martínez-Abadía, A. Mateo-Alonso, S. De Feyter, J. Am. Chem. Soc. 2020, 142, 5964–5968