xrdb
The tool that runs a resource file through the C preprocessor and stores the result inside the X server, so every program on every machine sees the same settings.
Resource files such as ~/.Xresources are just text. It is xrdb that gives them effect: it reads the file, pipes it through cpp and writes the result to the RESOURCE_MANAGER property on the root window, or with -screen to SCREEN_RESOURCES on an individual screen. The preprocessor is the whole point of the program. #include splits settings across files, #define names colours, and symbols such as COLOR, PLANES, WIDTH, HEIGHT and SERVERHOST are set by xrdb itself, so #ifdef COLOR could give a monochrome X terminal different settings from the workstation. A resource file's own comments start with an exclamation mark, but since cpp runs first, C comments disappear too, to the surprise of more than one user.
The flags decide what happens to whatever is already there: -load replaces the database, -merge adds and overrides, -query prints it and -remove empties it. The line xrdb -merge ~/.Xresources in .xinitrc or .xsession is so standard that few people know it is needed until it is missing. It is also why a program running on another machine over X gets the right fonts: the database lives in the server, not with the client. If no RESOURCE_MANAGER exists, Xlib falls back on ~/.Xdefaults on the client's machine, an arrangement from X11R1 that still confuses people.