In the U.S. national anthem, the word rampart refers to a large defensive wall, especially one surrounding a fort or castle. The line "O'er the ramparts we watched" describes the American flag flying above the fort's walls during the Battle of Baltimore (1814).
A rampart is a broad embankment or wall forming a defensive boundary—broader and more substantial than a simple fence or parapet.