Many people look to the stock market as a place to get rich quick. What smart investors like Warren Buffett have figured out, though, is that thinking long-term about your investments can produce the returns over time that can make you truly wealthy. 

In the following slideshow, Dan Caplinger, The Motley Fool's director of investment planning, looks at what makes a stock a good long-term holding for a 25-year time horizon or longer. He then takes a closer look at Berkshire Hathaway (BRK.A 0.99%) (BRK.B 0.91%), MasterCard (MA 0.30%), and PepsiCo (PEP 1.34%), running them through the wringer to identify why they might fit well in your portfolio or why you might prefer other choices. Regardless of which stocks you pick, focusing on a company's long-term prospects is the best way to find the best returns.