The British law that closed down Boston Harbor and imposed a curfew on the colonists was known as the Coercive Acts, or Intolerable Acts, enacted in 1774. Specifically, the Boston Port Act, one of the Coercive Acts, was responsible for shutting down the harbor in response to the Boston Tea Party. These punitive measures aimed to suppress colonial resistance but ultimately fueled unrest and united the colonies against British rule.