Original: That lasted until the abolition of the han system took place in 1871.
Simplified: That lasted until the the han system was stopped in 1871.