What is valor? How do I get it, and what's the use for it?

Valor shows how successful you are at fighting against other players. The amount of valor determines which league you're in. You get valor points for successfully attacking another player's castle or for successfully defending your own. When you lose a fight, you lose some of your previously earned valor points.