In this paper, which is the continuation of [EFW2], we complete the proof of the quasi-isometric rigidity of Sol and the lamplighter groups. The results were announced in [EFW1].