Artificial intelligence (AI) is the ability of a computer or machine to mimic human cognitive functions such as learning, problem-solving, and decision-making. AI algorithms analyze data, identify patterns, and make predictions or take actions based on those patterns.