Almost all of this is done via the Diplomacy Screen (Hotkey F7).
There are also many ways to take advantage of your allies, and benefit from your enemies. Diplomacy is one of the greatest tools at a leader's disposal - knowing when to befriend others and when to declare war can be the difference between a successful empire and one that crumbles before its foes.