I took my first investing class as a teenager, and one moment stands out in my memory. A fellow student asked the instructor, a stockbroker, about dividends.

"Dividends?" he asked. "I'm trying to make my clients wealthy. You don't do that waiting for tiny checks in the mailbox every quarter."

Even then, I had enough horse sense to know he was wrong. Paying attention to dividends is exactly how you become wealthy over time.

Wharton professor Jeremy Siegel made a wonderful discovery in his book The Future for Investors. The greatest long-term returns typically don't come from the most innovative companies, or even companies with the highest earnings growth. They come from companies that happen to crank out dividends year after year. Simply put, since the 1950s, "the portfolios with higher dividend yields offered investors higher returns."

Market commentary regularly centers around price gyrations, yet dividends have historically accounted for more than half of total returns.

Reinvest those dividends, and your results become even greater. Take Procter & Gamble (NYSE: PG). Since the late 1960s, P&G's share price has increased just over 4,000%. But add in reinvested dividends, and total returns jump to more than 13,000%.

Pgdivjuly

Source: Capital IQ, a division of Standard & Poor's.

There's no ambiguity here: Over time, Procter & Gamble's share appreciation alone has paled in importance to the power of its reinvested dividends. The results are similar for competitors Clorox (NYSE: CLX) and Kimberly-Clark (NYSE: KMB); reinvested dividends skew both companies' total long-term returns overwhelmingly higher. If you're a shareholder, don't worry about daily -- or even yearly -- share wobbles. Devote your attention to those dividend payouts, and your commitment to reinvest them.

And how do P&G dividends look? The company has paid a dividend every year since 1890, with a 55-year annual growth rate of nearly 10%. This is truly one of the most impressive dividend track records in history. Its current yield -- 3.2% -- is above the market average. Over the past five years, dividends have used up an average of 40% of the company's free cash flow, which means its dividend is safe from any immediate cuts, and has plenty of room to grow in the future.

To earn the greatest returns, get your priorities straight. What the market does is less important than what your company earns. What your company earns is less important than how much it pays out in dividends. And what it pays out in dividends is less important than whether you reinvest those dividends.

Fool contributor Morgan Housel owns shares of P&G. Follow him on Twitter @TMFHousel. Motley Fool newsletter services have recommended buying shares of Procter & Gamble and Kimberly Clark. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.