The X Window System (X11, X) is a windowing system which provides the basic framework for a GUI environment: drawing and moving windows on the display device and interacting with a mouse and keyboard.
A window manager is system software that controls the placement and appearance of windows within a windowing system in a graphical user interface.