The Grimm brothers, Jacob and Wilhelm, contributed to philology by compiling the first comprehensive German dictionary, known as the Grimm's Dictionary. They also collected and published folklore and fairy tales, helping to preserve and document the German language and cultural heritage. Additionally, their work on Grimm's Law in historical linguistics has been influential in the study of language evolution.