Scientists have debated the reason for zebra stripes for a long time, and there are a few leading theories:
Camouflage: This classic idea suggests the stripes help zebras blend in with tall grass, making them harder for predators to spot. Lions, however, are partially colorblind, so this theory may not be the whole story.
Confusion tactic: Another thought is that the stripes confuse predators when a herd of zebras runs together. The mass of moving stripes might make it difficult for a lion to pick out a single target.
Fly defense: More recent research suggests the stripes may be a defense against biting flies. Studies have shown that zebras attract far fewer flies than horses, and even horses with fake zebra coats have some protection. The stripes may confuse the flies' vision, making it harder for them to land.
This is likely the most accepted explanation currently, but research is ongoing. It's also possible that zebra stripes serve multiple purposes!