A fractional Hardy–Sobolev inequality with a magnetic field is studied in the present paper. Under appropriate conditions, the achievement of the best constant of the fractional magnetic Hardy–Sobolev inequality is established.