The pledge of Allegiance was written by Francis Bellamy in 1892, a Christian Socialist, who argued that God was a Socialist and was known for helping the poor.
Originally it was written, “I pledge allegiance to my flag.” Also god was added during the communist scare.
Bellamy saw raw uncapped capitalism, individualism, and materialism as a blow to the promise of America. He wished that the pledge would promote a new vision of America to counter the spread of greed, and wanted a more egalitarian system.
Bellamy was part of a group who fought unfair treatment of laborers and advocated for union rights and the rights for people to actively and freely unionize
He wrote this and it was presented to schools in recognition of free public education.
And lets not even get started with Ann Bates, the writer of “America the Beautiful,” who was also a Christian Socialist, and lesbian.
See here for a more articulate piece.
Read more about this at the HuffingtonPost