The City of London, which has been self-governing since the thirteenth century, was geographically within the county, which also included Westminster, which also had a high degree of autonomy.
The City of London has been self-governing since the thirteenth century and became a county in its own right. Middlesex also included Westminster, which also had a high degree of autonomy.