His interactions with the justice system have followed a byzantine path. Assange spent seven years hiding in the Ecuadorian embassy in London after Swedish officials accused him of sexual assault, an arrangement that appeared to frustrate both Assange and his hosts.

Ultimately, Swedish police withdrew the accusations, but, next, authorities in the U.K. took him into custody for allegedly violating bail.

Then, the American government sought to extradite him, a process that limped through the courts for years. The plea deal averts more legal proceedings over the extradition that had been set for early July.