According to the ruling in the Plessy v. Ferguson case, why was segregation acceptable?

According to the ruling in the Plessy v. Ferguson case, segregation was considered acceptable based on the "separate but equal" doctrine. The Supreme Court ruled that as long as the facilities and opportunities provided to both races were equal, segregation was permissible under the 14th Amendment's "equal protection" clause. This ruling allowed state and federal segregation laws to be implemented, leading to the establishment of a racially segregated society in various aspects of life, such as education, transportation, and public facilities. However, it is important to note that this ruling was eventually overturned by the Supreme Court in the landmark case Brown v. Board of Education in 1954, which declared that segregation in public schools was unconstitutional.