During the night, there had been only occasional sounds of the fort's guns returning fire. At dawn, the British bombardment tapered off. Had the fort been captured? Placing a telescope to his eye, Key trained it on the fort's flagpole. There he saw the large garrison flag catch the morning breeze. It had been raised as a gesture of defiance, replacing the wet storm flag that had flown through the night. Thrilled by the sight of the flag and the knowledge that the fort had not fallen, Key took a letter from his pocket and began to write some verses on the back of it. Later, after the British fleet had withdrawn, Key checked into a Baltimore hotel and completed his poem on the defense of Fort McHenry. He then sent it to a printer for duplication on handbills, and within a few days the poem was put to the music of an old English song. Both the new song and the flag became known as "The Star-Spangled Banner" and became a rallying cry for the American Patriots during the rest of the war.
S.C. Code § 10-1-168