Before you can deflect an army, you need to know your enemy. Study their movements, anticipate their tactics, and be prepared to adapt.
Know your defenses inside and out. Reinforce your walls, dig your moat, and stock up on ammo.
It's time to get creative with those pesky catapults, ballistae, and ballistae. Learn how to use them in tandem with your other defenses for maximum effect.