Summary:

If a civilization or city-state captures one of your cities, they take some of your gold (as well as the city).