US Markets

Biotech surges 5.99% in best day since '09

Fed releases minutes
VIDEO3:0003:00
Fed releases minutes
What Fed decisions mean for you & your money
VIDEO5:0505:05
What Fed decisions mean for you & your money
Weak dollar will be problem for Tokyo: Cashin
VIDEO3:1203:12
Weak dollar will be problem for Tokyo: Cashin
Draw down in crude oil inventories
VIDEO1:0501:05
Draw down in crude oil inventories
European drugs, Italian banks up at open: Pisani
VIDEO3:2403:24
European drugs, Italian banks up at open: Pisani

U.S. stocks closed higher Wednesday, led by gains in health care and energy, after the release of the Fed meeting minutes.

Buying accelerated into the close, with the Dow Jones industrial average ending about 112 points higher with Chevron and Pfizer contributing the most to gains.

The Nasdaq composite outperformed, rising 1.59 percent to its highest close of 2016 as Amazon.com jumped 2.7 percent and Apple rose 1.05 percent. The iShares Nasdaq Biotechnology ETF (IBB) surged 5.99 percent for its best day since March 12, 2009. (Tweet This)

With trade volume nearly triple its 30-day average, the ETF edged higher in the hour or so after the 4 p.m., ET, market close, when IBB showed a 5.96 percent gain that would have been its best day since Aug. 9, 2011. The ETF is still 15.5 percent lower year-to-date.

"It's a melt-up of a very oversold sector," said Jeremy Klein, chief market strategist at FBN Securities, noting a combination of short-covering and speculation supporting gains in biotech stocks.

"You got an all-clear on the minutes. Crude has had a monster day. You had a couple days of selling and the trend is still upward," he said.

Pipelines and oil storage tanks in Cushing, Oklahoma.
US oil closes up 5 pct on surprise crude stocks draw
US Treasurys hold lower after Fed minutes
Dollar falls below 110 yen, BOJ seen unlikely to intervene
Gold slips as stocks recover, Fed minutes show caution

Health care jumped 2.65 percent and energy closed up 2.1 percent, helping the S&P 500 gain 1.05 percent.

"Health care and energy both up, leading the S&P. That's something that hasn't happened in a long, long time," said Marc Chaikin, CEO of Chaikin Analytics.

The major averages temporarily pared gains after the Federal Open Market Committee March meeting minutes showed several policymakers expressed caution over April hike, while some said an April hike might be warranted.

Many participants indicated "heightened global risks and the asymmetric ability of monetary policy to respond to them warranted caution in making adjustments to the stance of U.S. monetary policy," the minutes said.

"The way I look at the Fed minutes is, I'm almost tempted to discount the Fed minutes in light of (Fed Chair Janet) Yellen's comments last week," Tom Siomades, head of Hartford Funds Investment Consulting, said, noting the Fed chair showed "more leadership."

"I think the market is just having a knee-jerk reaction when in reality there is a whole lot that has gone on since these minutes that has given us a whole lot of clarity," he said.

5-day performance


Earlier, the S&P and Dow struggled to hold opening gains before climbing as oil prices extended gains.

U.S. crude oil futures settled up $1.86, or 5.2 percent, at $37.75 a barrel after weekly crude inventories from the EIA showed a draw of 4.9 million barrels.

The U.S. dollar index touched its lowest since Oct. 2015 before recovering slightly, with the euro near $1.14 and the yen at 109.7 yen against the greenback. Earlier, after the Fed minutes' release, the yen hit 109.4, a fresh high against the dollar since Oct. 2014.

We'll "see how Japanese equities react tonight. If (the dollar/yen) keeps sliding then there's going to be some problem," Klein said.

Overnight, the Nikkei 225 fell 0.11 percent for its first seven-day losing streak since November 2012.

The Federal Open Market Committee minutes from the March 15 to 16 meeting were released at 2 p.m. ET. At that meeting, the central bank kept rates unchanged and lowered its projections for the number of hikes this year to two from four.

Treasury yields recovered from Tuesday's decline to hold slightly higher. The was near 0.74 percent and the 10-year yield at 1.75 percent.

"I'm a little surprised we didn't give back a little bit of it from the Fed minutes, which I though emphasized a little more the risks from abroad more than we had heard from the Fed previously," said Sharon Stark, managing director and fixed income strategist at D.A. Davidson.

St. Louis Fed President James Bullard said the Fed could raise rates at any meeting, or even between meetings, according to a Bloomberg Radio interview cited by Reuters. However, he noted the pieces of data since the Fed's March meeting have been "mixed," making it potentially difficult for the Fed to raise rates this month.

Ahead of the Fed minutes release, Cleveland Fed President Loretta Mester said she expects a gradual series of interest rate hikes this year given recent U.S. economic strength.

"It will be appropriate to continue to gradually reduce the degree of accommodation this year," she told the Cleveland Association for Business Economics.

Read MoreThis could be a historic moment in the Treasury market

European stocks ended more than half a percent higher.

In Asia, the major averages were narrowly mixed. The Shanghai composite also ended mildly lower while the Hang Seng gained slightly.

The Caixin/Markit services PMI for March rose to 52.2 from February's 51.2, but the employment sub-component fell to 48.9 from 51.3, pointing to the first contraction in staffing levels since August 2013.

Major U.S. Indexes


In corporate news, Pfizer abandoned its merger with Allergan following the Treasury's fresh moves to limit inversions. Allergan closed up nearly 3.5 percent, while Pfizer jumped 5 percent.

Read MoreAllergan CEO: Merger with Pfizer was targeted by US government

Separately, the U.S. Department of Justice filed a suit to block the merger of Halliburton and Baker Hughes. The two firms said in a press release they "intend to vigorously contest" the DOJ. Shares of Halliburton closed up 5.9 percent and Baker Hughes ended 8.8 percent higher.

U.S. stocks closed lower Tuesday, following declines in overseas developed markets on soft data, despite gains in oil prices and better U.S. data.

"Yesterday's 1.0 percent decline in the SPX reflects a loss of short-term momentum that was already evident in most global equity markets," BTIG Chief Technical Strategist Katie Stockton said in a morning note. "We find it worrisome that the NASDAQ 100 Index gapped down for the first time since early January."

Read More Early movers: STZ, PFE, AGN, WFC, CSCO, PLCM, AMZN, JNJ, CREE & more

The Dow Jones industrial average closed up 112.73 points, or 0.64 percent, at 17,716.05, with Pfizer leading advancers and General Electric the greatest decliner.

The Dow transports underperformed, closing down 0.24 percent with Matson leading decliners and UPS the top advancer.

The gained 21.49 points, or 1.05 percent, to 2,066.66, with health care the top advancer and utilities lagging.

The Nasdaq composite gained 76.78 points, or 1.59 percent, to 4,920.72.

The CBOE Volatility Index (VIX), widely considered the best gauge of fear in the market, fell 8.6 percent to 14.09.

About three stocks advanced for every decliner on the New York Stock Exchange, with an exchange volume of 854 million and a composite volume of nearly 3.7 billion.

Gold futures for June delivery settled down $5.80 at $1,223.80 an ounce.

—Reuters contributed to this report.

On tap this week:

Wednesday

Earnings: Bed Bath & Beyond

6:30 p.m. St. Louis Fed President James Bullard

8 p.m. Dallas Fed President Rob Kaplan

Thursday

Earnings: CarMax, Rite Aid, Ruby Tuesday, Duluth, WD-40

8:30 a.m. Jobless claims

10:30 a.m.: Natural gas inventories

3 p.m. Consumer credit

5:30 p.m. Fed Chair Yellen with former chairmen Bernanke, Greenspan, Volcker on a panel hosted by International House

8:15 p.m. Kansas City Fed President Esther George

Friday

10 a.m. Wholesale trade

1 p.m.: Oil rig count

*Planner subject to change.

More From CNBC.com:

—Reuters contributed to this report.