There is no federal law that dictates the order in which the Pledge of Allegiance and the National Anthem are recited. However, there is a generally accepted tradition that the Pledge of Allegiance is said first, followed by the National Anthem. This tradition dates back to the early 20th century when the Pledge of Allegiance was first introduced as a way to promote patriotism and loyalty to the United States.