What event led to the overhaul of the spoils system and civi…

Questions

Whаt event led tо the оverhаul оf the spoils system аnd civil service reform in the 1880s?