Dogs pull because pulling often works. That's the uncomfortable truth behind one of the most common leash-training problems.
Pulling has a payoff
If your dog pulls toward a tree and eventually reaches it, pulling was reinforced by access to the tree. If they drag you toward another dog and get closer, the behavior worked again.
Your dog doesn't need to understand obedience theory to learn this pattern. They only need to notice that tension on the leash predicts forward movement.
Make loose walking useful
Start by rewarding moments when the leash is loose. You can use food, praise, sniffing opportunities, or simply permission to continue walking.
One particularly useful strategy is to stop moving when the leash becomes tight and continue when your dog returns enough slack to the line. The important part isn't standing still forever. It's making forward movement depend on a workable leash rather than constant pulling.
Don't demand perfection
Loose-leash walking does not necessarily mean your dog must stare at you and walk beside your leg for the entire walk. A dog can sniff, explore, and look around while still keeping reasonable leash tension.
The goal is a functional walking skill, not a military parade. Give your dog appropriate opportunities to explore while teaching them that dragging you isn't the fastest route to what they want.