Remote boronate rearrangement of boronic acids to C = N bonds have substantial synthetic utility, however, this synthetic route has been limited by the need for preinstalled directing groups. Here, the authors introduce a lactam-driven dynamic directing strategy, enabling efficient 1,5- and 1,4-boronate rearrangements, advancing the functionalization of inactive C = N bonds and expanding synthetic methodologies.