Interesting story:
Slavery didn't fully end with the civil war because natives kept their slaves on the grounds that American law didn't apply to native land.
It was actually a series of separate battles where, after losses, freeing their slaves was part of the deal they agreed to.