President Yoon Suk Yeol of South Korea declared martial law late Tuesday, before withdrawing troops early Wednesday.