Attention refers to the cognitive process of selectively focusing on certain aspects of the environment or internal thoughts. It is a fundamental concept in cognitive psychology as it determines what information is processed and how effectively it is encoded and remembered. Attention also plays a role in perception, problem-solving, and decision-making, making it vital in understanding human cognition.