Confucianism was the dominant philosophical and ethical system in China for roughly two millennia, from its formulation in the 6th century BCE (during the Spring and Autumn period) until the fall of the imperial system in the early 20th century (late 19th/early 20th century CE), though its cultural influence persists today.