We propose a new class of U (1) µ−τ gauged model that can explain recent flavor anomalies such as muon g −2, b → sµ + µ − , as well as include a scalar dark matter candidate while satisfying all the phenomenological constraints. For this purpose, we add new vectorlike quarks and leptons as well as two inert singlet scalars, one leptophilic and the other leptophobic. In our model b → sµ + µ − anomalies can be explained by loop induced interactions among the SM and exotic quarks and Z gauge boson. In our numerical analysis, we show allowed region of our model to be narrow, and it would be tested soon, for example by searching for 4 muons and dimuon + missing transverse momentum from pp → µ + µ − Z and pp → ν µ,τ νµ,τ Z followed by Z → µ + µ − , ν µ,τ νµ,τ at the LHC.