Current in a wire makes a magnetic field that circles around it. Walk any loop around the wire and the field adds up to the same total, proportional to the current. Walk a loop that misses the wire and it adds up to zero. That's Ampère's law, and it hides a catch in Green's theorem.