Greta Thunberg was given a "final warning" before her arrest in London during a climate demonstration last year, a court has heard.
The 21-year-old from Sweden was arrested near the InterContinental Hotel in Mayfair on Oct 17 last year as oil executives met inside for the Energy Intelligence Forum.
Thunberg, two Fossil Free London protesters and two Greenpeace activists appeared at Westminster Magistrates' Court on Thursday for their trial after each pleading not guilty in November to breaching Section 14 of the Public Order Act 1986.
The court heard that protesters started to gather near the hotel at around 7.30am and police engaged with them about improving access for members of the public, which had been made "impossible".
Prosecutor Luke Staton said a couple of protesters gained access to the roof just before 10.30am and "were slowly abseiling down the side of the building".
The Section 14 condition was imposed at around 12.30pm, which dictated that the protest could continue but on the pavement to the south of the hotel, the court heard.
Thunberg was standing outside the hotel entrance and was approached by police, informed of the condition and of the designated protest area, the court heard.
Mr Staton told the court that she was warned by one officer that her failure to comply would result in her arrest.
While that officer was elsewhere engaged, another officer then spoke with Thunberg and "gave her a final warning", the prosecutor said.
"She said that she was staying where she was and so she was arrested," Mr Staton said.
The other defendants were similarly informed of the Section 14 condition and did not move to the designated protest area, the court heard.
Outside court, Thunberg said: "History's judgment against those who deliberately destroy and sacrifice ... resources at the expense of humanity, at the expense of all those who are suffering the consequences of the environmental and climate crisis ... and at the expense of future generations, your own children and grandchildren will not be gentle."