If one of your friends or clanmates is in trouble and needs help, you can send some of your Galleons with a shipment of troops and supplies. Up to 6 aid credits can be accumulated, and one additional credit will accumulate every 4 hours.
It costs 1 aid credit to send a shipment to a clanmate or an allied empire, and 3 aid credits to send aid to a neutral empire.
During the round closing period, these costs increase to 2 aid credits to send to allied empires and 6 aid credits to send aid to neutral empires.
In a single aid shipment, you can send up to 20% of your empire's currently available Footmen, Catapults, Zeppelins, Galleons, Money, Mana, and Grains to another empire.
No matter what you wish to send, you must send a minimum number of Galleons to deliver your shipment, where the amount is based on the size of your empire. If you specify a number smaller than this amount, any remaining Galleons will be automatically returned to you once your shipment is delivered.
Aid can only be sent to those who actually need it - an empire whose networth is significantly greater than yours likely has no need for your goods. However, if you are in a clan, you will be allowed to send goods to clanmates many times your size.
It is not possible to send aid to those you are at war with - the very idea is laughable.