The Nyāya and the Vaiśeṣika are realistic systems based on independent reasoning. They are a valuable set-off against the phenomenalism and idealism of the Buddhist thinkers. While the Nyāya is mainly logic and epistemology, the Vaiśesika is primarily physics and metaphysics. The two, however, agree on essential principles and have the same end, namely, the liberation of the individual self.