AMP pages work by simplifying the code of a web page, optimizing its performance, and leveraging caching techniques. They use a restricted HTML, CSS, and JavaScript set to ensure fast rendering. AMP pages are pre-rendered and cached by search engines and other intermediaries to provide instant loading when accessed.