We obtain the fractional Hardy–Sobolev inequality on homogeneous Lie groups. We prove a fractional version of the logarithmic Hardy–Sobolev inequality on homogeneous Lie groups, which seems new even in the Euclidean setting. As an application, we establish the existence of a weak solution for fractional sub-Laplacians with Hardy potential.