SEOUL, South Korea — A South Korean court removed the president on Friday, a first in the nation’s history, rattling the delicate balance of relationships across Asia at a particularly tense time.

Her removal capped months of turmoil, as hundreds of thousands of South Koreans took to the streets, week after week, to protest a sprawling corruption scandal that shook the top echelons of business and government.

Park Geun-hye, the nation’s first female president and the daughter of the Cold War military dictator Park Chung-hee, had been an icon of the conservative establishment that joined Washington in pressing for a hard line against North Korea’s nuclear provocations.

Now, her downfall is expected to shift South Korean politics to the opposition, whose leaders want more engagement with North Korea and are wary of a major confrontation in the region. They say they will re-examine the country’s joint strategy on North Korea with the United States and defuse tensions with China, which has sounded alarms about the growing American military footprint in Asia.