One purpose of democratic constitution is to establish the structure of governance within a democracy and to serve as a founding document for the democracy. A constitution often seeks to establish a legal framework by which the democracy will be based and protected through the legal system.