A redirect tells the client that the resource moved, so the request is re-issued against a new URL instead of failing.
A redirect is an HTTP response with a 3xx status code plus a Location header. The client (a browser, a curl, a crawler) reads the header and re-sends the request to the new URL. The redirect itself carries no content; the content lives at the destination.
There are two families. Permanent redirects (301, 308) tell the client and search engines that the move will not revert. Temporary redirects (302, 303, 307) tell them the move is temporary and the old URL will return. The difference matters for SEO: search engines transfer ranking through 301s but do not through 302s.