Machine learning is a science that allows computers to learn from data and improve their abilities over time without being explicitly programmed. It works by feeding computers data and information in the form of observations and interactions to learn patterns and make data-driven decisions. Machine learning algorithms can figure out how to perform tasks by generalizing from examples provided in the training data.