An apology is in order when you have done something wrong or hurtful to another person, even if it was unintentional. It shows empathy and accountability, and can help repair relationships.