The Pendleton Act of 1883 established the merit-based civil service system, which required government jobs to be awarded based on competitive exams rather than political patronage. This effectively ended the spoils system where candidates gave jobs to political supporters.