Alignment shows you (and others) what type of player you are. When you start in the game, you are of neutral alignment. If you kill evil monsters, your alignment will shift towards good. If you kill good creatures (or even other good players), your alignment will shift towards evil.