Which of the following events directly led to the writing of the Declaration of Independence?

A:the Battle of Lexington

B:the Stamp Act

C:the Battle of Concord

D:the Boston Tea Party