Legal history is the study of how law has evolved over time and its impact on society, encompassing the development of legal systems, institutions, and doctrines. It provides insight into the cultural, political, and economic factors that have shaped legal practices and principles throughout different eras and regions.