Castle cities are locations where actual city centers have sprung up around the protectorate of a local lord. These cities provide most of their nation’s military might.
Trade cities provide most of the economic power base of their host nation. Some also have an effective military connection.
These cities have sprung up due to factors beyond safety and economic trade. They are usually important morale centers for their nation’s owners.