What is dependency in project management?

In the context of project management, dependency refers to a logical relationship between tasks that is indicative of the order in which activities will begin and when they need to be performed. For instance, if task B requires the completion of task A, then we could say that task B is dependent on task A.