Around the end of the 8th century, widespread building of new stone fortresses and defensive walls began.