Climate change activist Greta Thunberg has been fined for defying police orders after twice barring her from entering Sweden’s parliament in March, the Stockholm District Court said.

Thunberg and four other activists were on trial after police forcibly removed them on March 12 and 13 while staging a sit-in protesting the effects of climate change and what they say are inaction by politicians.

Thunberg was sentenced to a fine of 6,000 Swedish kroner (512 euros), and to compensation of 1,000 kroner (85 euros), the TT agency reported.

A court official confirmed to Reuters that the 21-year-old was found guilty, but declined to comment on the amount of the fine.

When asked by the judge why she disobeyed police orders, the activist replied: “Because there was (climate) imperative and there still is. In such a case, we all have a duty to act.”

Current laws protect the extractive industries instead of protecting the people of the planet as they should, I believeshe added, leaving the courtroom.

Thunberg emerged as the “face” of young climate activists when she began her weekly demonstrations outside the Swedish parliament in 2018, which quickly grew into a youth movement across continents.

Stockholm police clarified that although the activists have the right to demonstrate outside the parliament building, they will remove them if they block the entrances.

Last year, Thunberg was found guilty twice of disobeying police orders and fined.

In February, in Britain, he was acquitted by a court after a judge ruled that police had no right to arrest activists who took part in a demonstration in London.