The government classifies dividends as capital gains. You’ll have to pay taxes on them when it comes time to file.