At 1012, Qufu was renamed to Xianyuan County ( ), and relocated to the new site, some 4 kilometers east of today's walled city, next to the supposed birthplace of the legendary Yellow Emperor and the tomb of his son Shaohao.