Automated administrative decisions (AADs) have been deployed in the public sector to increase efficiency and accessibility. However, AADs challenge the principles of the rule of law, particularly, the principle of legality (PoL). This chapter examines whether AADs are in compliance with the PoL. In order to adequately answer the question at hand, this chapter first discusses the PoL and its legal force. Secondly, it discusses AADs, their benefits and legal implications in relation to public administration. The chapter, finally, studies the entangled relationship between AADs and the PoL in the public sector and argues for the importance of upholding the PoL in the process of automated decisions made by public authorities.