The article introduces the German concept of the duty of "legality" (Legalitätspflicht), reflects on its theoretical justification and its meaning and applicability in the Czech legal environment.