The remains of a medieval village have been discovered at the Archerfield estate in East Lothian under the site of a new golf course.
Archaeologists are now working on the Archerfield site
Archaeologists have uncovered several houses from the 12th to 15th centuries in the middle of the 17th fairway of the new course.
Every inch of the medieval homes will be recorded before the golf course is safely created on the top.
An open day to see the medieval village is being held on Sunday.
John Gooder, AOC Archaeology senior project officer, said: "We know quite a lot about castles, about medieval towns but we know very little about rural settlements and it is these sort of settlements that 90% of Scottish people actually lived in at the time.
"Historical text may talk about church affairs and great affairs of state but they don't actually talk about how the ordinary people lived and that's where excavations like this come in.
"They allow us to fill in the gaps in our knowledge about how the people in Scotland lived in the past."
Don Placek, senior design associate at Renaissance Golf Design which designed the new golf course, said: "What we are hoping to do is integrate the contours that were here with the archaeology in such a way that they are not unnatural.
"But at the same time trying to incorporate some of the archaeology into those contours so that whoever plays golf here will have some sense of history and the different things that happened here hundreds of years ago."
Biddy Simpson, East Lothian Council archaeologist, said: "The golf course is really keen to make sure that everyone knows about this site so there will be interpretation in the club house and on the site."
The Renaissance Club at Archerfield, which is due to open in 2008, will consist of an 18 hole championship golf course.
The medieval village open day on Sunday will run between 1000 BST and 1600 BST.