What events led the new nation to write the constitution?

In the Founding Period of American History, the Founders were driven to write the Constitution, and thereby re-found the United States of America on a firmer foundation, for a variety of reasons. The ongoing debate about federal power had tipped to the side of the 'Federalists,' for one thing. But also, and perhaps more importantly, the practical experience of the nation during the War for Independence had demonstrated that, without a stronger federal government, it would risk failing in its 'grand experiment' of republican self-governance.