Summary:

If you're allied with a city-state, you'll get a stronger version of the benefits of friendship. In addition, the city-state will give you all of their luxury and strategic resources. Only one civilization can be allied with a city-state at a time - if multiple are eligible, whichever has the highest IPs gets the position.