Edward Thorndike's theory of learning through trial and error proposed that learning occurs through associations formed between stimuli and responses. When a response leads to a satisfying outcome, the stimulus-response association is strengthened. Thorndike identified three laws of learning: the law of readiness, the law of exercise, and the law of effect. His theory emphasized that learning is gradual, motivated, and occurs through random responses that are strengthened when they are successful. Thorndike's work laid the foundation for behaviorism and operant conditioning.