Which act took away Massachusetts's right to govern itself?
The "intolerable act" or coercive act.
The Boston Tea Act in 1773 is what justified this act which is one of the main explanations of the American Revolution.
Find more detail here:
Why did the colonists call the Coercive Acts the "Intolerable Acts"?