THE discovery of Stone Age flints and the remains of a huge Iron Age wall in Malmesbury mean the town dates back thousands of years, to the time when Stonehenge and Avebury were built.

A new report, published by the Bristol and Region Archaeological Services, reveals the date of finds uncovered near Malmesbury's St Joseph's Roman Catholic Primary School have been confirmed using carbon dating technology.

The Stone Age flint blades date back to about 2500 BC, which means people have lived in the town for more than 4,000 years - making it the longest continually occupied place in Britain.

"It is very exciting," said the Mayor of Malmesbury, Coun John Bowen.

"Malmesbury is an extraordinary place. It is the first one mentioned in the Domesday book in the Wiltshire region in 1086.

"And we have to look at what made it so special."

The Neolithic flints and pieces of Bronze Age pottery, as well as the foundation of a huge wall dating back to about 800BC, were uncovered in a dig in 1999.

The excavation was funded by English Heritage and organised in conjunction with North Wiltshire District Council and Wiltshire County Council's county archaeologist Roy Canham.

The dig was led by Tim Longman, of BRAS and a two-metre trench was dug to the north of St Joseph's School.

The archaeologists hoped to find the original medieval town walls, as English Heritage planned to repair and renovate them.

Instead, a whole series of historical treasures were revealed including two Norman houses, one on top of the other, the remains of an Anglo Saxon settlement and the huge stones, which had once served as the foundation for an Iron Age defence.

Such important finds always take a long time to verify but BRAS has now confirmed the age and significance of the discoveries.

Coun Bowen said the report confirmed what he had long suspected - that Malmesbury's superlative resources and geographic position made it an ideal settlement, with roots stretching into antiquity.

He said historian William of Malmesbury, writing before 1200, had described the town as an ancient place of the Britons.

The town's position on top of a steep hill, with the River Avon running around it, and long views over the surrounding countryside made it an ideal situation for a stronghold.

The latest discoveries indicate Malmesbury is indeed the legendary ancient British city of Caer Bladon - Caer meaning stronghold and Bladon being an old name for the Avon.

Coun Bowen, whose family has lived in Malmesbury since the 1500s, has written a book about the history of the town and believes there is plenty more to learn.

He recently discovered field markings indicating the remains of a 50-house Anglo Saxon village in a field a mile to the north of the town.

"There is more coming up all the time," he said.

"The people living here in the Stone Age were probably Neolithic herdsmen. We have a settlement here as old as Stonehenge - so this may have been one of the communities that helped to build it."

Mr Canham said this was the first time speculation about the town's beginnings had been proved.

"It is really really exciting," he said. "No other town in Wiltshire has a background like that."

He said digs like this were very rare because so few new developments were undertaken in the town.

He hopes funding may be found to undertake another one in the future.

"We still don't know if there was any Roman occupation of the town," he said.

"Some coins have been discovered but that's not really proof of occupation."