Final answer:
The Maryland fort built in a star shape and known for its role in the 1814 British bombardment is Fort McHenry. It is this fort that inspired Francis Scott Key to write 'The Star-Spangled Banner,' the U.S. national anthem.
Step-by-step explanation:
The Maryland fort that was built in a star shape and withstood the British bombardment in 1814 is Fort McHenry. During the attack, British forces led by Admiral Alexander Cochrane attempted to force the surrender of the fort's defenders by a continuous attack that lasted twenty-five hours. Despite their efforts, the defenders of Fort McHenry persisted without yielding, and following the assault, they famously hoisted a massive American flag, known as the Star Spangled Banner, signaling their triumph. This historic moment inspired Francis Scott Key to write the poem "In Defense of Fort McHenry," which later became known as "The Star-Spangled Banner" and was adopted as the U.S. national anthem.