I sold my stocks at the beginning of May, because my wife and I recently purchased our first home. It was bittersweet; I was excited to be a homeowner, but sad to see my holdings go. Then I watched in even greater dismay as Whole Foods shot up nearly 14% on earnings.

Volatility, thy name is stocks.

But I sold as soon as I knew I would need that money, because -- even though I was confident in my long-term holdings -- I had no idea what to expect in the next month. The market is a fickle place, and even Warren Buffett's disciples admit that they have no idea what will happen tomorrow.

The crazy market
Over the summer, the market reminded me why I was smart to sell. From May through August, companies with wide moats and steady operating histories such as Sprint Nextel (NYSE:S), Harrah's Entertainment (NYSE:HET), Fastenal (NASDAQ:FAST), Black & Decker (NYSE:BDK), and Seagate Technology (NYSE:STX) all dropped more than 15%.

That's crazy!

The easy way
But hey, it's an accepted fact that the market is crazy in the short term, and that the market is particularly crazy today, with inflation, rising energy costs, and war looming on the economic horizon.

That said, there are two things we know about stocks:

  1. They offer the best returns; and
  2. While earning those returns, stocks will drop precipitously along the way.

So how can you earn better returns? First, buy companies with superior management and wide market opportunities at good prices. Next, hold those companies for 10, 20, or even 30 years.

More free advice
I know that two-step plan sounds too good to be true, but it is a recipe for market-beating returns. There will, however, be hiccups along the way. That's why we advise members of our Motley Fool Stock Advisor investment service to follow these five maxims as well:

  1. Diversify broadly.
  2. Invest new money on a regular basis.
  3. Eliminate emotion from decision-making.
  4. Expect mistakes.
  5. Scale back any individual position, or your exposure to stocks, if you're fretting over volatility.

The Foolish bottom line
If you decide to heed these lessons (or join Stock Advisor), you're on your way to better returns. Remember, however, that they work only over long timelines. So don't go investing in stocks if you need money next month to, say, buy a house.

Fool co-founders David and Tom Gardner are beating the S&P 500 by nearly 40 percentage points since 2003 with their stock picks in Motley Fool Stock Advisor. You can join the service free for 30 days.

This article was originally published May 15, 2006. It has been updated.

Tim Hanson bought back a small position in Whole Foods, but owns shares of no other company mentioned. Whole Foods is a Stock Advisor pick. No Fool is too cool fordisclosure.