Imagine a battlefield where a machine decides, without a human telling it to, who lives and who dies. That idea is no longer science fiction. In this chapter we ask a hard question: if an autonomous weapon makes a mistake, who is morally responsible?