The American flag was created in 1777 to represent the 13 colonies and now 50 states, with each star representing a state. It was made as a symbol of unity for the new nation that had declared independence from Britain. The flag has since become an iconic symbol of American patriotism and democracy around the world.