Cache is a small amount of fast memory located between the CPU and main memory. It stores recently accessed data from main memory to allow the CPU to access it faster. When the CPU requests data, the cache is checked first and if the data is present it is retrieved from the cache. If not present, the data is loaded from main memory into the cache where future requests can be served faster.