Machine learning is a mechanism where computers learn patterns from data instead of humans writing instructions step by step.