If your total income was less than $38,600 and your qualified dividends were $5,000 (or whatever the exact number for your taxable income was) then you would be taxed at a 0% rate.
Qualified dividends are removed from your taxable income and taxed at their own rate, then whatever is left over is taxed at your regular rate.