Corporate finance

Why can depreciation affect a project’s cash flows even though depreciation itself is not a cash payment?