The four Coercive Acts were passed in response to the Boston Tea Party, to punish and control colonists, especially those in Massachusetts. The acts closed Boston Harbor and put the government of Massachusetts into the hands of a British governor, revoking colonists' preexisting system of elected officials and town meetings, which had allowed for an element of representative democracy. The acts also adjusted court systems so that British soldiers who were accused of crimes (often aggression against colonists, like in the Boston Massacre) while on duty could be tried by British courts instead of colonial ones. Finally, the acts expanded on the Quartering Act, allowing soldiers stationed in the colonies to claim certain buildings for their own use. These acts infuriated already-angry colonists, who felt that Britain was stripping away their trade rights, their right to self-governance, their right to private property, and allowing their soldiers to get away with murder by giving them trials in courts that would be biased in their favor.