Summary:

If you're "friends" with a city-state, the city-state will periodically give you gifts - a cultured city-state will give you culture; a maritime city-state will give you food; and a militaristic city-state will give you military units.