SEOUL, Aug. 6 (Yonhap) -- South Korea's current account surplus reached an eight-month high in June on a goods account surplus and record high returns from foreign investment, central bank data showed Tuesday.

The country's current account surplus came to US$6.38 billion in the month, the highest since October when the country posted a $9.35 billion surplus, according to the preliminary data from the Bank of Korea (BOK).

The reading also marks the second consecutive month of surplus after the country posted its first current account deficit in seven years in April, though largely due to a seasonal factor of increased dividend payouts.

South Korea continued to enjoy a large surplus in its goods account balance, posting a $6.27 billion surplus in June, up from a $5.51 billion surplus the month before, according to the BOK.

The tally, however, marks a sizable drop from a $9.54 billion surplus the same year last year.

The country's exports have been on a steady decline since December, hindered partly by the persisting trade dispute between the world's two largest economies -- the United States and China -- that are also the world's largest importers of South Korean products.

"The surplus in the goods account is continuing to shrink due to a drop in exports caused by the prolonged trade dispute between the U.S. and China, as well as an economic slowdown in China, one of the country's key trade partners," Park Yang-su, head of BOK's economic statistics department, told a press briefing.

However, "the service account balance is continuing to improve since last year, which can be said to be a very positive factor for the economy," he added.

The country's deficit in the service account balance widened to $2.1 billion from a $1.16 billion deficit in May, but the reading marks a drop of $400 million from a $2.42 billion deficit in the same month last year, according to the BOK.

The surplus in the primary income account more than doubled from a month earlier to $2.77 billion in June, the second highest in history, as its gains from foreign investment jumped to a record high of $4.9 billion, with income from dividend payments also reaching a record high of $3.27 billion.

In the first six months of the year, the country's current account surplus came to $21.77 billion, down 24.7 percent from a $28.9 billion surplus posted during the same period of last year, according to the BOK.

Its products account surplus tumbled to $37.06 billion from $52.48 billion over the cited period as exports shrank with a greater speed than imports.

The primary income account posted a surplus of $620 million in the January-June period, marking a sharp turnaround from a $2.91 billion deficit in the same period last year.

"The country had posted a deficit in the primary income account last year, but the account turned to black in the first half of this year on increased income from dividend payments," Park said.

"The surplus in the goods account has narrowed due to worsening external conditions, but the country continued to post a current account surplus on improvements in the service and primary income account balances," he added.