Dividends are quarterly distributions of of profits from a company back to the shareholders.
When you purchase stock in a company you become a shareholder in that company.
Investing in stocks that pay dividends is an excellent way to create passive income. The important part is investing in stocks that pay dividends and increase in value.
If you want to know what stocks are see "What is a Stock?"