A dependency injection container is a tool that helps manage dependencies in code by providing a way to declare and inject dependencies.