The GIL is a mechanism used by the CPython interpreter to manage access to Python objects and ensure thread safety. It allows only one thread to execute Python bytecode at a time, even on multi-core systems.