On paper, Shangahi's Guangfuli neighbourhood is a real estate investor's dream: a plot in the middle of one of the world's most expensive property markets. But the reality is more like a developer's nightmare, thanks to hundreds of people living there who have refused to move from their ramshackle homes for nearly 16 years as the local authority sought to clear the land for new construction. Surrounded by gleaming towers, the area looks like it has been bombed out.

Shanghai nail houses
A view of old houses surrounded by new apartment buildings in the Guangfuli neighbourhood of ShanghaiAly Song/Reuters

The few residents live in crumbling old houses, many of them partially demolished, with walls missing and no glass in the windows. But still they refuse to budge. Most of the properties have the Chinese character for "tear down" spray painted on them by demolition teams, although the paint has faded as the stand-off between the residents and the developer has dragged on.

Shanghai nail houses
Tao Weiren sits in front of his two-storey house in GuangfuliAly Song/Reuters
Shanghai nail houses
Mr Xu, 50, walks past a house in Guangfuli carrying the Chinese character 'Chai', meaning 'demolition'Aly Song/Reuters
Shanghai nail houses
Mr Zeng, 89, sits on his bed. He lives alone and keeps all his belongings within reach on his bed as he has difficulty walkingAly Song/Reuters
Shanghai nail houses
A vendor selling pork takes a nap in a semi-demolished house in GuangfuliAly Song/Reuters
Shanghai nail houses
Electric wires hang above a demolished old house in GuangfuliAly Song/Reuters
Shanghai nail houses
A woman named Xu watches TV in her eight-square-metre house where she lives with her husbandAly Song/Reuters

Luo Baocheng lives with his brother and family in a small three-storey apartment building, which he said he inherited from his mother. Luo said the property developer, Xinhu Zhongbao, refuses to pay the 4.2 million yuan (about £445,000) he says the house is worth. "They told me, I don't have a property right certificate," he told Reuters. "I've lived here 32 years, does that or does that not mean it's my property?"

Local real estate agents say average prices in the area around Guangfuli are now around £8,000 per square metre. As Shanghai property prices accelerate – they rose 25 percent year-on-year in March - the conflict over Guangfuli has intensified.

The residents said the developer has offered to swap their homes for new apartments in the distant Jiading district, but the catch is that they would have to pay. Luo said he was asked to fork out CH¥1.18 million (about £125,000, $181,000) for two apartments for him and his brother; he wanted four apartments and baulked at the price tag. "Where are we going to find 1.18 million? I'm retired and my brother is laid off," he said.

Shanghai nail houses
Li Guoqiang, a 38-year-old deliveryman, talks on his phone outside the house he rents in GuangfuliAly Song/Reuters
Shanghai nail houses
A woman named Li walks her dog in GuangfuliAly Song/Reuters
Shanghai nail houses
Mrs Li stands in front of pictures of her mother-in-law and father-in-law inside the house she shares with her husbandAly Song/Reuters
Shanghai nail houses
Jiang Wei cooks dinner outside a six-square-metre house he rents with a friend in Guangfuli. They have lived there for years, paying a monthly rent of 450 yuan (about £48)Aly Song/Reuters
Shanghai nail houses
A man shaves on the second floor of an old house in GuangfuliAly Song/Reuters
Shanghai nail houses
A woman smokes as she starts her electric bike in GuangfuliAly Song/Reuters
Shanghai nail houses
A boy rides a tricycle in between semi-demolished houses in GuangfuliAly Song/Reuters
Shanghai nail houses
Bian Jianhua, 48, poses for pictures at his home. He lives with his mother in a 20-square-metre house in GuangfuliAly Song/Reuters
Shanghai nail houses
Bian Guohua stands outside the house that his brother Bian Jianhua and mother live inAly Song/Reuters

The local authority, the Putuo district government, told Reuters, in response to faxed questions, that it wanted to demolish the neighbourhood and "make residents' lives better" by relocating them. The developer, Xinhu Zhongbao, did not answer Reuters' repeated calls requesting comment.

The stalemate highlights a fundamental and unresolved problem in China's half-liberalised property regime: who owns the land? As a rule, the average Chinese person's wealth is held in the form of cash and property. But property wealth in China rests on a tenuous definition of ownership, particularly so when it comes to the old houses granted to people by their work units in the days before such a market existed.

When China implemented property rights, these people were allowed to continue using the houses they lived in, with the caveat that the local government could relocate them later, with some sort of compensation. But widespread dissatisfaction with the compensation offered by local governments led to protests by residents and engendered the "nail house" phenomenon: residents who refuse to accept the buyout offer and stay put, boarding up their homes to fend off attempts to remove them.

Shanghai nail houses
A man cleans the glass roof over the entrance of an apartment building constructed in 2004 after the demolition of old housesAly Song/Reuters
Shanghai nail houses
A sign board for a public toilet is seen attached to an electric pole in GuangfuliAly Song/Reuters
Shanghai nail houses
Old houses are seen in the Guangfuli neighbourhood of ShanghaiAly Song/Reuters
Shanghai nail houses
An old house is seen in front of new apartment buildings in the Guangfuli neighbourhoodAly Song/Reuters
Shanghai nail houses
A night view of old houses surrounded by new apartment buildings in the Guangfuli neighbourhood of ShanghaiAly Song/Reuters

The result has often been architectural absurdities: small houses standing in the midst of freeways, pedestrian malls, perched on concrete islands in the middle of pits excavated for underground parking lots. But time and the great bulldozer, has seen most "nail house" residents in China bought out, pushed out or – given that many are elderly – carried out.