What was being protected in the 800's?