The problem of generalized magneto-thermoelastic diffusion in an infinite rotating nonhomogeneity medium subjected to certain boundary conditions is studied. The chemical potential is also assumed to be a known function of time at the boundary of the cavity. The analytical expressions for the displacements, stresses, temperature, concentration, and chemical potential are obtained. Comparison was made between the results obtained in the presence and absence of diffusion. The results indicate that the effect of nonhomogeneity, rotation, magnetic field, relaxation time, and diffusion is very pronounced.