An apology is what people say to show that they are sorry.
After arguing with her teacher, the girl wrote the teacher an apology.
Example picture