Stocks closed sharply lower in volatile trading Tuesday, with the Dow and S&P 500 snapping their four-day rally, as ongoing worries over the impasse over the debt ceiling continued to weigh on the markets.

(Read more: After-hours buzz: Intel, Yahoo, CSX & more)