You are the sniper protecting your base. Shoot down all your enemies, else they will destroy your base.
There are also upgrade options as you advance further into the game. Upgrade your weapon, fortify your walls. Hire gunmen to assist you or craftsmen to repair your base. Or even create a silo and blast the hell out of your enemies.