SEOUL, South Korea (AP) — South Korean President Yoon Suk Yeol said early Wednesday that he would soon lift the military rule he imposed overnight, after the parliament voted to reject his martial law declaration.

Yoon had declared martial law late Tuesday, vowing to eliminate “anti-state” forces as he struggles against an opposition that controls the country’s parliament and that he accuses of sympathizing with communist North Korea.

Less than three hours later, parliament voted to lift the declaration, with National Assembly Speaker Woo Won Shik declaring that the martial law was “invalid” and that lawmakers “will protect democracy with the people.”