An epilogue is a final chapter at the end of a story that often serves to reveal the fates of the characters. Some epilogues may feature scenes only tangentially related to the subject of the story. They can be used to hint at a sequel or wrap up all the loose ends. They can occur at a significant period of time after the main plot has ended. In some cases, the epilogue has been used to allow the main character a chance to "speak freely."
An epilogue can continue in the same narrative style and perspective as the preceding story, although the form of an epilogue can occasionally be drastically different from the overall story. It can also be used as a sequel.