I’m guessing Rome?
San Marino
San Marino totally beats out the ~450 years of the Roman Republic. It may be a microstate, but it’s still the record holder.