There is no walking away from a boss. When one keeps beating you, go down this list.
- Check the levels. The gate shows the chapter's level band and your party's level beside it. "Below the band: careful" means train first (see Level up your team).
- Scout the boss. On the deploy screen, tap the boss and its escorts to see their types, what hits them hard, their ability, item and moves. The Team tab's matchup counts the super-effective hits each side has. Bring Pokémon that hit the boss hard and that it doesn't.
- Keep the leader safe. If the leader falls, the fight is lost, whoever is still standing. Place it further back, out of the red wash (the tiles the foes can hit on the first turn; R hides it). On a chapter's expedition you lead; on a free one, Make leader at camp picks who.
- Guard it. The squares next to the leader carry a shield: a member there takes 40% of each hit on the leader (not area hits). Give a sturdy member the leader to guard (Formation or the Team page): their bond grows fight by fight, up to a counterattack, a hold at 1 HP and area hits covered.
- Light a synergy. Two members of one type give a bonus for the whole fight, and a story chapter's boss brings no synergies of its own. See Build a synergy team.
- Fill the kit. Each member takes one item into the fight and uses it when it helps: an Oran Berry or Sitrus Berry when HP runs low, a seed thrown at a strong foe. A move kept for big fights (the Moves tab) sits out the ordinary packs, so its PP are there for the boss.
- Tune IQ and tactics. On the Team page's IQ tab, Weak-Type Picker makes a member go after the foe its moves hit hardest. A second tactic can take over at half HP, when a teammate faints, or when the boss gets back up.
- Grow the team. Stars, held items such as a Power Band, and vitamins all add up.

Trying again
If the wind ends a boss fight before anyone wins, it isn't over: catch your breath and go again. If you lose, the team comes home with its levels and moves, but half the Poké on hand and everything found on the run stay behind. Put your Poké in storage at Kecleon's before you set out.
A loss also helps the next try. Once a chapter has beaten you, its boss stops growing with your team's toughness, and the story's limit on free-expedition EXP is lifted until you clear it.
More in Fights and Deploy and the Formation.