The US reached a trade agreement with South Korea that will impose a 15% tariff on imports, including autos, and sets up major investment in American energy and shipbuilding.

The agreement, announced by President Donald Trump and confirmed by officials in Seoul, brings one of the world’s biggest exporters into the US’s emerging trade framework and spares a major supplier of cars, smartphones and machinery from a 25% rate just a day before the deadline. The agreement includes a $350 billion South Korean fund for US investments. Shares in Seoul rose in early trading and the won strengthened against the dollar.