The Dow and the S&P 500 dipped on Tuesday as investors shrugged off weak consumer confidence data and focused on positive earnings reports.

Stocks recovered most of the session's losses late in the day, led by the healthcare sector. Investors snapped up biotech shares a day after Amgen's strong quarterly earnings report.

The health insurance sector also rose after Coventry Health Care's earnings topped Wall Street's estimates.

Strong earnings have given a second wind to a stock market rally that wilted in June after a 40 percent gain in the S&P 500 from its 12-year closing low in March.

We've seen an 11 percent rally in two weeks, said Tim Smalls, head of U.S. stock trading at Execution LLC in Greenwich, Connecticut.

He said that with stocks' recent sharp gains, the market was looking for a reason to take a breather so the slight decline in Tuesday's session is a good performance.

Smalls added that a lot of the afternoon recovery was linked to a poor U.S. Treasury auction, as money shifted from bonds into the stock market.

Shorter-dated U.S. Treasury debt fell after weak results in an auction of a record $42 billion of two-year notes had some analysts wondering if the global appetite for U.S. government debt might be waning.

The Dow Jones industrial average <.DJI> shed 11.79 points, or 0.13 percent, to 9,096.72. The Standard & Poor's 500 Index <.SPX> dropped 2.56 points, or 0.26 percent, to 979.62.

But the Nasdaq Composite Index <.IXIC> gained 7.62 points, or 0.39 percent, to 1,975.51.

Earlier on Tuesday, the U.S. consumer confidence index declined more than expected in July, a second consecutive monthly fall, as a sluggish labor market continued to worry consumers, the Conference Board said.

AMGEN'S HEALTHY INFLUENCE

Among the Nasdaq's major advancers, Amgen's stock rose 2.7 percent to $62.42 following the company's release of much better-than-expected second-quarter earnings after Monday's closing bell. The Dow Jones biotechnology index <.DJUSBT> gained 1.8 percent.

Coventry Health Care shares rose 12.7 percent to $22.59 on the New York Stock Exchange after the company's earnings topped Wall Street's estimates and it lifted its full-year earnings forecast.

Aetna jumped 12.6 percent to $28.96 after at least three brokerages said the insurer's recently slashed 2009 earnings forecast is achievable. Aetna and Coventry helped push the Morgan Stanley Healthcare Payors index <.HMO> up 6.5 percent.

But the energy sector's shares weighed on the broader market as the weak consumer confidence data took a toll on oil prices, which had risen on optimism about the economic recovery. U.S. front-month crude futures dropped $1.15, or 1.7 percent, to settle at $67.23 a barrel.

Exxon Mobil Corp , down 1.2 percent at $71.89, was the top drag on the Dow industrials. The S&P energy index <.GSPE> slid 1.5 percent.

Office Depot , the No. 2 U.S. office supply retailer, reported a bigger-than-expected quarterly loss as the recession bit into demand from corporate customers. The stock tumbled 18.1 percent to $4.38.

U.S. Steel Corp shares fell 2.2 percent to $40.35 after the company reported a quarterly loss and said it expected all of its business sectors to operate in the red in the third quarter.

U.S. single-family home prices rose in May from April, the first monthly increase in nearly three years, the Standard & Poor's/Case-Shiller home price indexes showed.

Volume was light on the New York Stock Exchange, where about 1.24 billion shares changed hands, less than last year's estimated daily average of 1.49 billion. On the Nasdaq, about 2.23 billion shares traded, close to last year's daily average of 2.28 billion.

Decliners outnumbered advancers on the NYSE by a ratio of about 8 to 7. But on the Nasdaq, the opposite trend prevailed: Seven stocks rose for every six that fell.

(Editing by Jan Paschal)