This principle is highlighted in the pledge of allegiance when it says:
I pledge allegiance to the flag Of the United States of America And to the Republic For which it [the flag] stands....
There are many reasons why the Founders wanted a republican form of government rather than a democracy.