The Pendleton Act, enacted in 1883, established a federal merit system for selecting government officials and supervising their work. This legislation aimed to curb the rampant patronage system that had allowed political favoritism to dictate government appointments, leading to corruption and inefficiency. The act marked a significant shift towards professionalizing the public service and laid the groundwork for modern public administration practices.