A senior official at St Paul's Cathedral in London said he had resigned on Thursday amid a dispute over the closure of the building due to anti-capitalist protesters camped outside.

Canon Giles Fraser, the chancellor of St Paul's and the third most senior official at the landmark church in the British capital's financial district, said he was quitting with "great regret and sadness".

Reports said he was sympathetic to the protest camp and disagreed with a decision last week to close the cathedral over health and safety issues caused by the "Occupy London Stock Exchange" protest.

More than 200 activists inspired by the Occupy Wall Street movement in the United States have been occupying a paved area in front of St Paul's for nearly two weeks.

"It is with great regret and sadness that I have handed in my notice at St Paul's Cathedral," Fraser said in a posting on Twitter.

A spokesman for St Paul's confirmed that Fraser, who took up the post in May 2009, had resigned and said colleagues were "disappointed."

Fraser said he was happy for the demonstrators to stay when they first set up their camp and refused to agree to the use of force to remove the protesters, the BBC reported.

The former philosophy lecturer also reportedly opposed taking legal action against the protesters, which St Paul's and London authorities are considering.

Cathedral authorities had said on Wednesday that they were "optimistic" they could re-open the church on Friday after the protesters changed the layout of their camp.

The closure of St Paul's was the first since World War II, when its dome served as a symbol of Londoners' defiance in the face of German bombs.

Protests inspired by Occupy Wall Street and Spain's "Indignants" took place in 80 countries on October 15, some of which turned violent, particularly in Rome, where 135 people were injured.