Genetics play a significant role in shaping an individual's cognitive abilities by influencing the development and function of the brain. Various genes contribute to different aspects of brain structure and neural connectivity, which in turn affect learning, memory, and problem-solving skills. However, environmental factors such as education, nutrition, and social interactions also interact with genetic predispositions to impact overall cognitive performance.