Algorithms have made our lives more efficient and entertaining--but not without a significant cost. Can we design a better future, one in which societial gains brought about by technology are balanced with the rights of citizens? The Ethical Algorithm offers a set of principled solutions based on the emerging and exciting science of socially aware algorithm design.