Jenkins works by monitoring repositories for changes, triggering build jobs based on those changes, and executing predefined tasks such as compiling code, running tests, and deploying applications. It provides a web-based interface for managing and configuring jobs and supports a wide range of plugins for extensibility.