The Standard Model (SM) is amended by one generation of quarks and leptons which are vector-like (VL) under the SM gauge group but chiral with respect to a new U(1)3−4 gauge symmetry. We show that this model can simultaneously explain the deviation of the muon g−2 as well as the observed anomalies in b→sμ+μ− transitions without conflicting with the data on Higgs decays, lepton flavor violation, or Bs−Bˉs mixing. The model is string theory motivated and GUT compatible, i.e. UV complete, and fits the data predicting VL quarks, leptons and a massive Z′ at the TeV scale, as well as τ→3μ and τ→μγ within reach of future experiments. The Higgs couplings to SM generations are automatically aligned in flavor space.