Who Built Edinburgh Castle? The Son of Saint Margaret of Scotland, King David 1st, built an imposing structure (which eventually stood at 443 feet - 135 metres above sea level) which came to be known as Edinburgh Castle, with some of the original construction continuing to stand even today.