Origin
All’s Well That Ends Well is a play by William Shakespeare. It is believed to have been written between 1604 and 1605, and was originally published in the First Folio in 1623.
Explanation
An event that has a good ending is good even if some things went wrong along the way. It is usually used when a particularly messy set of circumstances results in a desired conclusion. The saying means that, despite the situations, problems, or chaos that may have ensued in an effort to reach the desired conclusion, it is fine as long as the end result is positive. The phrase can also mean that, even though a set of circumstances didn’t begin in a positive way, the situation resolved itself in an acceptable manner.It could also be used for expressing the sentiment that, once a task or journey is finished, the situations endured to get to the end seem acceptable, even though the situations may not have seemed acceptable at the time. The phrase “all’s well that ends well” is generally not used until the journey, task, or goal has been completed. There are occasional instances where the phrase is used in the middle of a calamity for expressing optimism that the current situation won’t matter as long as the ending is positive.
Examples
I’m glad you finally got here, even though your car had a flat tyre on the way. Oh, well. All’s well that ends well.
The groom was late for the wedding, but everything worked out all right. All’s well that ends well.