In the 10th century AD , it was the eastern border province of the Holy Roman Empire ; castles were built here in order to move the borders eastwards .
In the 10th century it was the eastern border of the Holy Roman Empire .