Xlib provides a C API for the X Window System protocol, along with numerous utility functions.
Current versions of Xlib provide a compatibility wrapper around the X C Binding (XCB) library. For new projects, particularly toolkits, see the XCB library for the designated replacement.