Five novel disiloxane compounds comprising guanidinium and pyridinium moieties were obtained with high yields and purity. The verified synthetic pathways were then applied for modification of pre-functionalized silica gel, producing materials with the analogous organic side-chains. These halide-containing compounds and materials were then compared as to their ion-exchange properties: two disiloxanes proved to be effective in leaching different anions (nitrate, benzoate and ascorbate) from solid to organic phase, and pyridinium-functionalized silica gels showed selectivity towards perchlorate ion, removing it from methanolic solutions with preference to other singly charged anions. The results presented demonstrate that both compounds and materials containing silicon-carbon bonds can be produced using the same methodology, but offer strikingly different application opportunities. Comparison of their properties provides additional insight into the binding mode of different anions and hints at how the transition from a flexible siloxane bridge to immobilization on solid surface influences anion-binding selectivity. Additionally, one of the siloxane dipodands was found to form a crystalline and poorly soluble nitrate salt (1.316 g/L, water), although it was miscible with a wide range of solvents as a hydrochloride. A possible explanation is given with the help of semi-empirical calculations. A simple, time- and cost-efficient automated potentiometric titration methodology was used as a viable analytical tool for studying ion-exchange processes for both compounds and materials, in addition to standard NMR, FT-IR and ESI-MS methods.