What is the usage of middlewares in Django?

What is the usage of middlewares in Django?

It works for the request/response processing in the Django Framework. This component includes Authenticationmiddleware, that relates users during session for requests.