In music, a coda [ˈkoːda] (Italian for “tail”, plural code) is a passage that brings a piece (or a movement) to an end. Technically, it is an expanded cadence. It may be as simple as a few measures, or as complex as an entire section.
https://en.wikipedia.org/wiki/Coda_(music)