Shailene Woodley was arrested for criminal trespassing while peacefully protesting the controversial Dakota Access Pipeline, the Morton County Sheriff’s Department confirmed to Variety.

Woodley, who has been vocal about the pipeline, posted a video on Facebook Live streaming the incident. The two-hour video takes a turn near the end, when police begin to get involved. At one point, an unidentified officer could be seen telling Woodley, “We can’t talk right here, but you’re going to be placed under arrest for criminal trespassing.”

“But I have one question: Why am I being arrested and no one else is who is down there, is my question,” she asked the officer. “Is it because I’m famous? Is it because people know me?”

Another official can be heard telling Woodley, “It’s because you trespassed on the property.” “So did hundreds of people,” she replied. “We were all down there.” She added that she was being arrested “because I have 40,000 people watching.”

“We were going to our vehicle which they had all surrounded and waiting for me with giant guns and a giant truck behind them just so they could arrest me,” she said. “I hope you’re watching, mainstream media.”

An official with the Morton County Sheriff’s Department told Variety that she was one of 27 people arrested at the protest, which started at about 7:00 a.m. CT and ended at about 12:30 p.m. The official said that about 125-150 people attended the protest, and Woodley was arrested at about noon.

A federal judge on Sunday rejected the Standing Rock Sioux Tribe’s request for a permanent injunction to block the planned pipeline, which crosses the tribe’s land and burial grounds. The 1,170-mile, $3.7 million pipeline would be responsible for transporting 470,000 barrels of oil a day.