My Little Pony Friendship is Magic Season 1 Episode 21 "Over a Barrel"
The ponies visit the frontier town Appleloosa, but are caught in a dispute between the settler ponies and the native buffalo herd over who claimed the land their apple orchard was established on.