In a primacy-of-consciousness philosophy, virtue consists of allegiance to the ruling consciousness, such as God or society. In Ayn Rand's philosophy, virtue consists of allegiance to existence; it consists of a man's recognizing facts and then acting accordingly.