The Standard & Poor's 500 index logged its best year since 1997, gaining 29.6 percent. All 10 industry groups that make up the index rose, led by consumer discretionary stocks, a broad category that includes department stores, restaurants and entertainment companies. Telecommunications stocks rose the least. Here's a breakdown:
CONSUMER DISCRETIONARY: Vendors of non-essential consumer services surged in 2013, boosted by two of the stock market's star performers, Netflix and Best Buy. This year's gain: 41 percent.
HEALTH CARE: Stocks in this sector gained for a number of reasons. Some offered the prospect of explosive growth because of new drugs, others offered rich dividends. Health insurers also did well as the Affordable Health Care Act rolled out. This year's gain: 38.7 percent.
INDUSTRIALS: Delta Air Lines was the biggest gainer in this sector. Airlines do well when the economy is improving as people travel more. This year's gain: 37.6 percent.
FINANCIALS: Banks, insurers and other financial stocks gained on optimism that the industry is healing after the financial crisis and the Great Recession. This year's gain: 33.2 percent.
INFORMATION TECHNOLOGY: Chipmaker Micron was the biggest gainer in the technology sector as demand for its products rose and its profitability improved. Facebook and Yahoo also had good years. This year's gain: 26.2 percent.