Every time you add a room to your castle, you can add Defense Units to defend it or to produce orbs to climb PvP Leaderboards. However, placing Defense Units costs Kingdom Points —and so does building rooms—, so you need to manage them wisely!
The number of Kingdom Points you spend per Defense Unit you place depends directly on their Class: Imperial, Elite, Crafter or Vanguard, from most to least expensive.