Dependency parsing is a technique used in natural language processing (NLP) to understand the grammatical structure of a sentence. It involves analyzing the grammatical relationships between words to build a dependency tree. Each word in the sentence is connected to another word through directed links called dependencies.