Defending your castle is simpler than history might have you believe. Simply position your mouse over an enemy troop, and use the left-mouse button to pick him up. Make a throwing motion with the mouse, releasing the button to fling your unfortunate victim through the air. Hence defending your castle!
Use your mouse to interact.