what was the main reason for the creation of the civil service system in the late 1800s

The main reason for the creation of the civil service system in the late 1800s was to reform the process of hiring government employees by establishing a merit-based system. Prior to the civil service system, government positions were often filled based on political patronage and favoritism, leading to corruption and inefficiency. The civil service system aimed to ensure that individuals were hired based on their qualifications and abilities, rather than political connections, in order to improve the effectiveness and integrity of the government.