You can defend your base by attacking zombies. Attack them by clicking right on zombies and they will get attacked.