Widowhood and regency
In 1468, as his health deteriorated, Sejo abdicated in favor of Yi Hwang (posthumously King Yejong), and Lady Yun became queen dowager. Sejo died a day later. Because Yejong was frail and sickly, the officials supported Lady Yun in taking over governing. She oversaw all civil and military matters on behalf of the king, which allowed her to appoint her own people to important positions. She was the third woman since the founding of the dynasty to wield such tremendous power after Queen Sindeok and Queen Wongyeong, but the first to do so from the position of queen dowager.
In 1470, roughly a year after his accession, Yejong died unexpectedly days before his twentieth birthday without having named his successor, and another fierce strife ensued within the court. Lady Yun designated Yi Hyeol, the younger son of the late Crown Prince Uigyeong, as the new king (posthumously King Seongjong), rather than Yejong's only surviving son, Yi Hyeon (이현), or Crown Prince Uigyeong's elder son, Yi Chong. The reasons cited were that Yi Hyeon was too young (not yet 4 years old), while Yi Chong had been in poor health from a young age. However, it is highly likely that Yi Hyeol being married to a daughter of Han Myeong-hoe, who had played a major role in Sejo's coup, contributed to Lady Yun's decision. It seems she judged it more advantageous to bring the powerful Han Myeong-hoe to her side given the unstable political situation.
Concerned about Seongjong's legitimacy, Lady Yun also had Crown Prince Uigyeong posthumously honored as king and elevated Lady Han to the position of queen (commonly known as Queen Insu), later even declaring her status as higher than that of Queen Dowager Inhye, the widow of King Yejong.
As Seongjong was only 12 at the time of his accession, Lady Yun continued to manage state affairs in the king's stead, but in a formal capacity this time. When the officials initially requested that she become regent, Lady Yun refused, arguing that her daughter-in-law, Lady Han, was literate and would be more suitable than herself. Nevertheless, it was the convention at the time to have the most senior elder in the palace act as regent and she eventually accepted the role, although she didn't take the lead outright. She instead chose to discuss matters with her grandson and offer advice based on the experience accumulated over the years, particularly throughout King Sejo's reign.
During Lady Yun's regency, diplomatic relations with the Ming dynasty peaked, with trade flourishing between the two countries. Furthermore, a significant move was made to have the commoner farmers receive the right to cultivate fields that had originally belonged to the military. In 1474, the State Code, which was first ordered by King Sejo, was completed and put into effect. As a patron of the arts and Buddhism, she also commissioned Buddhist paintings and sutras.