Proofreading functions as the last step in the editorial process. The final polish. The details.
This process originally functioned to check for typos, spelling and punctuation errors, and formatting issues on the proof copy of a book.
However, some indies get proofreading done before formatting and page layout, so the meaning of the word “proofreading” seems to be evolving.