Japan's parliament has voted to allow the military to fight overseas for the first time since the end of World War Two 70 years ago.
A vote on the constitutional amendment was delayed for several hours as the opposition tried to stop the measure coming into law.
Outside, demonstrators rallied in a last-ditch show of protest.
Many Japanese are attached to the pacifist provisions in the constitution which banned fighting overseas.
The bills have already passed through the government-dominated lower house.
The government wanted to hold the vote before a five-day holiday begins on Saturday.
On Thursday, opposition politicians tried to physically delay proceedings ahead of a committee vote on the bills.