The phrase do the dirty work means to do the disagreeable, illegal or dishonest things. Example: He always sends his assistant to do his dirty work rather than doing it himself.