In the late 19th century, after hundreds of years of isolation, Seoul opened its gates to foreigners and began to modernize.