What ended in 1878?