In a morally or ethically corrupt way. He fought dirtily in the competition, using underhanded tactics to win.
In a manner that is unclean or covered with dirt; not cleanly. The children came back from the garden, laughing and looking dirtily smudged with soil.
In an obscene or indecent manner. He joked dirtily about the scene, making everyone uncomfortable.