AI learns from data using a process known as machine learning, where algorithms analyze vast amounts of data, identify patterns, and use those patterns to make predictions or decisions, without being explicitly programmed to perform the task.