The NYTimes explains that it was by tracking down Osama’s courier:
A trusted courier of Osama bin Laden’s whom American spies had been hunting for years was finally located in a compound 35 miles north of the Pakistani capital, close to one of the hubs of American counterterrorism operations. The property was so secure, so large, that American officials guessed it was built to hide someone far more important than a mere courier.