The Second Congress functioned as a de facto national government at the outset of the Revolutionary War by raising armies, directing strategy, appointing diplomats, and writing petitions such as the Declaration of the Causes and Necessity of Taking Up Arms and the Olive Branch Petition.