Summary:
You can spend gold to purchase units or buildings in a city. Click on an item (if you can afford it!) and it will be immediately constructed in the city, and the amount deducted from your treasury.
Note that "projects" - the Utopia Project, the Manhattan Project, etc. - cannot be purchased.