You earn gold to buy units and increase your strength. People can attack you while you aren't playing the game and take said resources. Plenty of stuff to buy with real money though. The game is designed to just keep you playing non stop.