It is actually considered both. Confucianism is often characterized as a system of social and ethical philosophy rather than a religion. Confucianism is built on an ancient religious foundation and the teachings are considered more in the realm of philosophy.