Summary:
To initiate diplomacy, click on the Diplomacy Panel button. The Diplomacy Panel will appear, displaying all known civilizations and city-states in the game. Click on an entry to speak with that leader. Alternatively, you can click on a civ's or city-state's city banner to open communications with them.
What you can accomplish depends upon whether you're speaking with a civilization or a city-state.