⋯⟶π2(U)⟶π2(X)⟶π1(X|U)⟶π1(U)⟶π1(X)
where I'm indexing the relative homotopy functors πn(X|U) off by one from Hatcher's notation. This makes it easier to remember when they start being abelian, when they don't have a group structure anymore ... it's also handy to note that πn(X|U) actually is pin of a functorial construct on the inclusion j.
Anyways, we have this long exact sequence, and it comes in handy whenever U (or X) and (X|U) --- whatever that means --- have easy homotopy groups. For instance, the 2-sphere and the 1-sphere both have easy homotopy groups; it just so happens that a long slog of an argument gives us that any Jordan Curve is a topological 1-sphere. Specializing the long exact sequence to a Jordan curve J in a 2-sphere, we find
⋯0⟶Z⟶π1(S2|J)⟶Z⟶0
at the end of our sequence. Now, from algebra, there are only two possible groups that can sit in for π1(S2|J); one of them is abelian, one has an abelian subgroup of index 2; in any case, the long exact sequence says that π1(S2|J) has an element x represented by a disc whose boundary is mapped to the Jordan curve J --- that's surjectivity of the last nonzero map --- and has another generator y mapping the boundary of the disc to a single point --- that's by injectivity of the first nonzero map. We may just as well instead take as generators x,xy, so they both wrap the disk's edge around J once.
Now, We're not quite at the Jordan curve theorem yet, but we're pretty-darn close!