It existed for one thousand one hundred years , from the late 7th century until the late 18th century ( 1797 ) .
It existed for over a millennium , from the late 7th century until 1797 .