In the Holy Roman Empire, the collective term free and imperial cities, briefly worded free imperial city, was used from the fifteenth century to denote a self-ruling city that had a certain amount of autonomy and was represented in the Imperial Diet. An imperial city held the status of Imperial immediacy, and as such, was subordinate only to the Holy Roman Emperor, as opposed to a territorial city or town which was subordinate to a territorial prince – be it an ecclesiastical lord or a secular prince.