Capitalize the word “city” when it occurs in the name of a municipality, such as “New York City” or “Dodge City.” If you’re placing “the city of” before the name of a city, such as “the city of Oakland,” lowercase “city” to refer to the town itself, but capitalize it to refer to the city government.
Right: Panic spread throughout the city of Pittsburgh.
Right: She used to work for the City of Nashville.
Right: Following the federal subpoena, the City of Atlanta released 1.5 million pages of records.