Clicking the anthill will create worker ants, which will generate sugar cubes. You can use sugar to buy upgrades. The military, science, and religion upgrades require a certain number of ants to be allocated to that category. You can allocate ants by clicking the up arrow on the allocation tab.