The Labour Party conference has voted to back Jeremy Corbyn in remaining neutral on Brexit until after an election.
With a show of hands, delegates at the Brighton-based event voted against campaigning to remain in the European Union at this stage.
Attendees broke out into a chorus of "oh, Jeremy Corbyn" after the result of the vote was announced.
They also voted in favour of holding a second referendum.
A decision on how the Labour Party would campaign in the referendum would be taken at a subsequent special conference after an election.
The votes followed a talk from shadow Brexit secretary Sir Keir Starmer, who confirmed that the party would call a second referendum within six months if they won a general election.
Sir Keir said: "If you want a final say on Brexit, vote Labour.
"If you want to fight for remain, vote Labour."
And Emily Thornberry also took to the stage this afternoon to reiterate her desire to campaign for remain in any second Brexit referendum.
"We must fight with every fibre of our beings to say between now and October 31, and afterwards if there is a general election, that any terms of departure, from any government, must go back to the people for the final say," she said.
"They should have the option to remain, and I for one will be out there campaigning to remain."
In her final remarks, Ms Thornberry told delegates: "With your endorsement today, conference, with the instructions that I hope you give us today, I believe we must strive night and day, whatever it takes, to keep Britain in the European Union."