Compound interest is interest on your interest. Each time interest is added to a balance, the next round of interest is figured on that larger balance.
Here's how it works. Put $100 in an account earning 5% a year, compounded yearly. After one year you have $105. In the second year, the 5% applies to $105, so you earn $5.25 and end at $110.25. The extra 25 cents is interest on the first year's interest.
How often interest compounds (yearly, monthly or daily) changes how fast this happens. That's why savings accounts list two numbers: an APY, which includes compounding, and an interest rate, which doesn't. The federal Truth in Savings rules define both.
The same math works on debt. Unpaid interest that's added to a balance can start earning interest too.
The official wording, from Investor.gov, is "interest paid on principal and on accumulated interest." Principal is the amount you started with.