Season 1 Episode 21

"Over a Barrel"

Applejack and her friends deliver an apple tree to the foundling frontier town of Appleloosa. They find that the ponies of the town are in conflict with a nearby buffalo tribe, who have previously used the land set aside for the apple trees as a running ground for them. Twilight and her friends work to establish peace between the two sides, but Pinkie Pie's song, performed at an inappropriate time, leads the two sides to declare war on each other. The buffalo charge at the town, who fire on the buffalo with apple pies. When the buffalo chieftain is hit with a pie, he discovers the pie is tasty and quickly puts an end to the battle. The two groups agree to an amicable solution: the ponies leave a trail for the buffalo to run through the apple grove, while the buffalo get to enjoy apple pies made from the fruits.