NEW YORK (CNNMoney) -- U.S. stocks rallied Friday on hopes that central banks in Europe and the United States will take steps to support the economy.
The Dow Jones industrial average was up 188 points, or 1.5%, to end above the 13,000 mark, a psychologically important level it has not crossed since early May.
The major indexes are all ended higher for the week. The Dow rose 2% for the week, the S&P added 1.7% and the Nasdaq gained 1.1%.
Friday's rally was driven mainly by "chatter" the European Central Bank will intervene in the bond market to ease borrowing costs for Spain and Italy, said Peter Cardillo, chief market economist at Rockwell Global Capital.
"Stocks are moving higher on the hopes that we finally will see some action to stabilize the situation in Europe," said Cardillo.
French President François Hollande and German Chancellor Angela Merkel said in a joint statement Friday that they are "committed to do everything to protect the eurozone." ECB president Mario Draghi said Thursday that the bank will do "whatever it takes" to preserve the euro.
Draghi will meet this weekend with officials from the German central bank, which has resisted buying bonds in the secondary market, ahead of next week's policy meeting, according to Bloomberg. The wire service said Draghi is pushing a plan to buy bonds, lower interest rates and offer additional liquidity to European banks.
Meanwhile, investors also responded to the latest U.S. economic data and corporate reports.
The U.S. economy grew at a 1.5% annual rate in the second quarter of 2012, down from a 2% rate in the first three months of the year, according to the government.
While the report was slightly better than expected, the outlook for growth remains lackluster as the weak job market curtails consumer spending. Many traders expect the Federal Reserve, which also meets next week, to take additional steps to stimulate growth.
"We've learned that you never fight the Fed when they want to get something done and have the ammunition to do it," said Anthony Conroy, head trader at BNY ConvergEx Group.
Economy: The Thomson Reuters/University of Michigan's final reading on the overall index on consumer sentiment fell to 72.3 in July from 73.2 in June. It was the lowest level since December.
Economists had expected the index to remain unchanged in July at 72, according to a survey of analysts by Briefing.com.
Companies: Facebook ( ) shares fell to an all-time low after the social network company's first quarterly earnings release as a public company. Facebook beat analysts' revenue expectations slightly and earnings matched forecasts, but that was apparently not enough for Wall Street.
Expedia () shares surged after the online travel booking company reported strong quarterly results.
Despite reporting mixed quarterly results and a disappointing outlook, Amazon (Fortune 500) shares moved higher as investors focused on the online retailer's long-term growth prospects.,
Shares of Barclays (Libor scandal while reporting a $6.3 billion profit for the first half of 2012.) gained after the bank apologized for the
Merck (Fortune 500) shares rose after the pharmaceutical company beat earnings and sales expectations and affirmed its outlook for the year.,
Del Frisco's (), a high-end steakhouse chain, raised $75 million in its initial public offering late Thursday, as shares priced at $13, below the range of $14 to $16. The stock finished its first day on the Nasdaq unchanged.
Oil for September delivery rose 70 cents to $90.09 a barrel.
Gold futures for August delivery rose $2.90 to $1,618 an ounce.
Bonds: The price on the benchmark 10-year U.S. Treasury fell, pushing the yield up to 1.51% from 1.43% late Thursday.
|What we want Apple to unveil at WWDC|
|Millennials squeezed out of buying a home|
|7 traits the rich have in common|
|Big Data knows you're sick, tired and depressed|
|Your car is a giant computer - and it can be hacked|
|Overnight Avg Rate||Latest||Change||Last Week|
|30 yr fixed||4.30%||4.25%|
|15 yr fixed||3.29%||3.32%|
|30 yr refi||4.27%||4.20%|
|15 yr refi||3.26%||3.24%|
Today's featured rates: