During the colonial era, martial law was proclaimed and applied in the territory of the Province of Quebec during the invasion of Canada by the Continental Army during the American Revolutionary War in 1775–1776. It was also applied twice in the Province of Lower Canada during the 1837–1838 insurrections. On December 5, following the events of November 1837, martial law was proclaimed in the district of Montreal by Governor Gosford, without the support of the Legislative Assembly of Lower Canada. It was imposed until April 27, 1838. Martial law was proclaimed a second time on November 4, 1838, this time by acting Governor John Colborne, and was applied in the district of Montreal until August 24, 1839.