GLOBAL MARKETS-Stocks end worst quarter since 2008 with small recovery

* Stocks down 21% as brutal quarter comes to a close

* Strong Chinese factory data helps shares bounce

* Signs virus infection rates slowing but investors cautious

* Oil prices climb off 18-year lows

* Graphic: World FX rates in 2020 http://tmsnrt.rs/2egbfVh

By Tommy Wilkes

LONDON, March 31 (Reuters) - World stocks were set to close their worst quarter since 2008 on a brighter note, as Chinese factory data on Tuesday held out hope for an economic revival even as much of the rest of the world locked down to fight the coronavirus.

Stocks have rallied since the start of last week but remain down more than 20% for the quarter. European shares have had an even worst time, suffering their worst three months since 2002. Britain's FTSE last endured such a drop in 1987.

But with policymakers responding with more than $10 trillion and counting of fiscal and monetary stimulus packages, a semblance of calm has returned this week as brave investors bet the worst is behind them.

European stocks rallied. The Euro STOXX gained 1.59%, France's CAC 40 0.9% and the German DAX 2.03%. Britain's FTSE 100 rose 1.75%.

That followed gains in Asia after China's manufacturing purchasing managers' index rose to 52.0 in March from a record-low 35.7 in February, topping forecasts of 45.0.

Analysts cautioned that underlying Chinese activity probably remained below par, since the improvement measured the net balance of companies reporting an expansion or contraction, but markets cheered the news.

S&P 500 futures rose 0.6%, pointing to a stronger open on Wall Street after a rally on Monday lifted the U.S. index towards a 20% gain since the lows of last week.

The MSCI world equity index, which tracks shares in 49 countries, edged 0.14% higher. It is down 21% for this quarter.

Not everyone is convinced the current rally has legs.

"In spite of the significant sell-off of most growth-oriented assets since mid-February, we are concerned there is further downside ahead," said Salman Baig, an investment manager at Unigestion.

"The violent market action should not be understated, but the underlying cause – an accelerating pandemic requiring large parts of the economy to shut down – is still with us."

The number of coronavirus infections globally is heading towards 800,000. But Deutsche Bank analysts noted that for two consecutive days the global growth in new cases was below 10%, after exceeding that for most of the past two weeks.

Health officials are much more cautious. A World Health Organisation official warned on Tuesday that even in the Asia-Pacific region the epidemic was "far from over".

"This is probably the most embarrassing statistic for the West that China could possibly release," Charlie Robertson, the chief economist at Renaissance Capital, tweeted, referring to China's factory data release.

"Not only did China stop the virus with just 3,309 deaths, they also appear to have done it with just a one-month shutdown of the economy."

Some analysts dispute China's figures, however.

OIL RECOVERS FROM 18-YEAR LOWS

Oil prices rose off the 18-year lows hit on Monday after the United States and Russia agreed to talks to stabilise energy markets.

Crude prices have been hit by a double whammy, with U.S. crude at one point falling below $20 a barrel on Monday, as the virus outbreak cut demand worldwide and Saudi Arabia got into a price war with Russia.

Brent crude was up 65 cents, or 2.86%, at $23.41 a barrel, after closing on Monday at $22.76, its lowest finish since November 2002. nL4N2BO131

U.S. crude climbed 5.6%, to $21.38 a barrel, after closing Monday's session at $20.09, its lowest since February 2002.

The dollar rose for a second day, although the gains were more controlled than those earlier this month that put severe stress on funding markets for the U.S. currency.

The dollar, measured against a basket of currencies, strengthened 0.4% to 99.652.

The euro dropped 0.6% to $1.0971. Sterling slipped 0.6% to $1.2345. The yen was around 0.6% lower against the dollar at 108.465 yen.

Analysts say investors rebalancing their portfolios at month-end and quarter-end were probably behind some of the dollar's moves this week.

There was little respite for some emerging-market currencies, with Latin American ones falling again .

The South African rand staged a tentative recovery after dropping to record lows on Monday following the downgrade to its sovereign debt rating.

Bond market moves were more measured than in recent weeks. Italian government bond yields were steady before an auction of debt, amid hopes the country's efforts to contain the spread of the coronavirus may be starting to work.

German benchmark 10-year yields rose 4 basis points to -0.483%. 10-year U.S. Treasury yields gained 1 bp to 0.682%, as investors sold safer bonds and bought into stocks.

(Additional reporting by Sujata Rao in London; editing by Larry King)