Philology is the study of languages in written historical sources, focusing on their history, development, and relationships. It combines literary studies, history, and linguistics to understand how languages evolve and influence each other over time.