Compounding is the process where an investment earns returns, and these returns further generate their own returns in subsequent periods. When dividends are reinvested, the investor benefits from both the growth of the original investment and the returns from the reinvested dividends. This can significantly boost the portfolio's value over time, especially when dividends are consistently reinvested.