Human DNA ligase III recognizes DNA ends by dynamic switching between two DNA-bound states.