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