Dependency injection in FastAPI means you write small functions that provide needed resources, like a database connection. You then tell FastAPI to use these functions by adding Depends() in your endpoint parameters. When a request comes in, FastAPI calls these dependency functions automatically and passes their results into your endpoint functions. This way, your endpoint code stays simple and focused on its job. The execution table shows FastAPI calling get_db, injecting its result into read_root, and returning the response. This automatic wiring is why dependency injection matters: it keeps your code clean and easy to manage.