We compute an O α 2 (Zα) 6 contribution to the hydrogen-atom Lamb shift arising from the light-by-light scattering. Analogous diagrams, with one atomic electric field insertion replaced by an external magnetic field, contribute to the gyromagnetic factor of the bound electron at O α 2 (Zα) 4 . We also calculate the contribution to the gyromagnetic factor from the muon magnetic loop.