The game has three different resources: gold, oil and diamonds. With gold you can upgrade your defensive buildings, command center, and walls. With oil you can buy and upgrade troops, barracks, and rally points.
With Diamonds you can buy Gold and Oil. You can also speed up your buildtime and buy more workers!