Two conditions have to be met. You must be a member of a guild, since guild battles are a group activity with no solo entry, and you must be the guild leader to actually start one. Members can contribute and fight, but the button to declare belongs to the person running the guild.
That makes guild battles an organisational exercise as much as a combat one. Leaders typically pick an opponent of comparable strength, coordinate who attacks whom, and time the assault so the enemy cannot reinforce — spreading your attacks thinly across a stronger guild is how you lose without a fight.
If you are not the leader and want a battle, ask. Most guilds are happy to schedule one; they simply need the person with the authority to press the button.