Is Daoism a religion or a philosophy?

Daoism is considered both a religion and a philosophical tradition. It originated in ancient China and encompasses a broad range of beliefs and practices. On one hand, it includes a number of religious elements such as rituals, deities, temples, and clergy. On the other hand, Daoism also offers philosophical teachings on concepts like the way of nature (dao), balancing opposites (yin and yang), and the pursuit of harmony and balance in life. Some individuals may engage with Daoism primarily as a religion, while others may approach it more as a philosophical framework.