Massachusetts farmers organized a rebellion led by Daniel Shay in response to harsh laws and high taxes imposed by the state legislature to collect debts from the Revolutionary War. Shay and 700 men, many of them unpaid veterans, closed courts that were foreclosing on farms. They were eventually defeated by the state militia in 1787. The rebellion highlighted the weaknesses of the Articles of Confederation and contributed to the convening of the Constitutional Convention to draft a new governing framework for the new United States.