Alignment shifts with how you handle defeated opponents. Kill an evil enemy and your alignment moves toward evil, which comes with a bonus of about 1% more gold.
Let an evil enemy go instead and you move toward good, gaining roughly 1% more experience. So the choice is essentially gold versus experience, decided fight by fight.