Middleware is code that might see the request before it actually hits your in view methods or action methods. It's a nice way to have some sort of global layer in your pipeline in the request pipeline of Django. One practical example was when we had to make those GDPR changes, like with the regulations and stuff.