Cognition is the processing of information.
It is a mental activity, conscious or unconscious, that creates knowledge a priori through thought and a posteriori through senses/experience. Consciousness overlaps cognition but requires some form of self-awareness. Cognition is largely concerned with prediction.