Dependency is a type of relationship between elementary syntactic units. Valency is a property of a lexical unit.