
Do one of the following:
Close a document but keep Pages open: Click the red close button in the top-left corner of the Pages window, or press Command-W.
Close the document and quit Pages: Choose Pages > Quit Pages (from the Pages menu at the top of your screen). All of your changes are saved.