Greek anti-austerity demonstrators threw explosives at police in Athens Wednesday. Police sprayed tear gas in return.

The protest took place near the Parliament building. Lawmakers inside were debating terms for a new debt agreement from Greece’s European lenders. The violent activists ended otherwise peaceful demonstrations. Thousands of people had marched through Athens to protest the latest austerity measures.

Greek lawmakers are to vote on the measures early Thursday.