The high potential of self-assembly processes of molecular building blocks is reflected in the vast variety of different functional nanostructures reported in the literature. The constituting units must fulfill several requirements like synthetic accessibility, presence of functional groups for appropriate intermolecular interactions and depending on the type of self-assembly processsignificant chemical and thermal stability. It is shown that oligopyridines are versatile building blocks for two- and three-dimensional (2D and 3D) self-assembly. They can be employed for building up different architectures like gridlike metal complexes in solution. By the appropriate tailoring of the heterocycles, further metal coordinating and/or hydrogen bonding capabilities to the heteroaromatic molecules can be added. Thus, the above-mentioned architectures can be extended in one-step processes to larger entities, or in a hierarchical fashion to infinite assemblies in the solid state, respectively. Besides the organizational properties of small molecules in solution, 2D assemblies on surfaces offer certain advantages over 3D arrays. By precise tailoring of the molecular structures, the intermolecular interactions can be fine-tuned expressed by a large variety of resulting 2D patterns. Oligopyridines prove to be ideal candidates for 2D assemblies on graphite and metal sufaces, respectively, expressing highly ordered structures. A slight structural variation in the periphery of the molecules leads to strongly changed 2D packing motifs based on weak hydrogen bonding interactions. Such 2D assemblies can be exploited for building up host-guest networks which are attractive candidates for manipulation experiments on the single-molecule level. Thus, "erasing" and "writing" processes by the scanning tunneling microscopy (STM) tip at the liquid/solid interface are shown. The 2D networks are also employed for performing coordination chemistry experiments at surfaces.