The authorities cleared visitors from the Statue of Liberty on the Fourth of July after a woman protesting the Trump administration’s immigration policies climbed onto its base and refused to come down. About three hours later, police officers followed the woman onto the statue and took her safely into custody.

The standoff created an unexpected spectacle in New York Harbor that culminated not long before the planned Independence Day fireworks were set to start nearby on the Hudson River. Television networks aired live coverage through the afternoon, showing a continuous video feed of the protester as she moved around the base of the statue.

The woman started climbing shortly after 3 p.m. on what officials described as one of the busiest days of the year for the national monument. National Park Service officials said that more than 20,000 tourists typically visit the monument each July 4.

Throughout the afternoon, the woman, identified by federal officials as Therese Okoumou, waved what looked like a T-shirt and reclined in a crease of the statue’s robe. The copper is only about one-tenth of an inch thick, and officials feared she could damage the statue.