South Korea's military confirmed that it had test-fired a solid-fueled rocket on Friday after the unannounced launch led to rumors about a UFO or a North Korean missile launch. 

In a statement, the Defense Ministry said that the launch was part of an initiative to build a space-based surveillance capability and fortify the country's defense posture.

The department said it did not flag the public about the launch in advance because it involved sensitive military security issues.

A light trail was captured in an image from Goyang that evening, sending social media sites into a frenzy. 

FIERY HIGHWAY CRASH IN SOUTH KOREA KILLS 5, INJURES 37

"What is this? Is this a UFO? I’m scared," said one Twitter user. 

A light trail from a solid-fueled rocket over Seoul

The light trail is seen in Goyang, South Korea, Friday, Dec. 30, 2022. South Korea's military confirmed it test-fired a solid-fueled rocket on Friday, after its unannounced launch triggered brief public scare of a suspected UFO appearance or a North Korean missile or drone flying.  (AP Photo/Ahn Young-joon)

Others suspected a less sinister or supernatural phenomenon: a drone or light show. 

According to local media emergency offices and authorities received hundreds of reports of witnessing a suspicious unidentified flying object.

In March, South Korea conducted its first successful launch of a solid-fuel rocket.

South Korea's Minister of National Defense Lee Jong-sup

South Korea's Minister of National Defense Lee Jong-sup speaks at the Shangri-La Dialogue summit in Singapore on June 12, 2022.  (ROSLAN RAHMAN/AFP via Getty Images)

PENTAGON HAS RECEIVED 'SEVERAL HUNDREDS' OF UFO REPORTS, NONE OF EXTRATERRESTRIAL ORIGIN SO FAR

The Defense Ministry said Friday's launch was a follow-up. 

The Seoul. South Korea, city skyline

An aerial view of Seoul, South Korea. (Joe Sohm/Visions of America/Universal Images Group via Getty Images)

The launch came just days after South Korea accused North Korea of flying five drones across the border on Monday for the first time in five years. 

CLICK HERE TO GET THE FOX NEWS APP 

South Korea’s military detected the drones but failed to shoot them down, forcing the military to apologize for that later. 

The Associated Press contributed to this report.