  The contribution of the light-by-light diagram to the g factor of electron
and muon bound in Coulomb field is obtained. For electron in a ground state,
our results are in good agreement with the results of other authors obtained
numerically for large Z. For relatively small Z our results have essentially
higher accuracy as compared to the previous ones. For muonic atoms, the
contribution is obtained for the first time with the high accuracy in whole
region of Z.
