The law of three stages is a sociological theory proposed by Auguste Comte, which suggests that the development of human knowledge and society progresses through three distinct stages: the theological, the metaphysical, and the positive or scientific stage.