(CNN) — The city of Ayodhya in northern India broke a Guinness World Record by lighting more than 300,000 clay oil lamps on the eve of the Hindu festival Diwali , also known as the Festival of Lights.

Participants light earthen oil lamps on the banks of the Sarayu river in an attempt to enter the Guinness World Records for the largest display of oil lamps on the eve of Diwali PAWAN KUMAR/REUTERS

The 301,152 lamps were lit simultaneously for five minutes on the banks of the Sarayu River, which runs through the holy city of Ayodhya in Uttar Pradesh, beating a 2016 record held in a neighboring state, according to a regional government statement.

Indian people light earthen lamps on the banks of the River Sarayu on the eve of "Diwali" festival during a "Deepotsav" event organised by the Uttar Pradesh government in Ayodhya on November 6, 2018 SANJAY KANOJIA/AFP/Getty Images

Guinness World Records confirmed the record to CNN and that this surpassed the previous title of 150,009 lamps achieved in Haryana on September 23, 2016.

The event in Ayodhya was attended by South Korean first lady Kim Jung-sook, who is on a four-day visit to India, and Uttar Pradesh Chief Minister Yogi Adityanath.

The East Asian country has a historical connection to the city due to a Korean legend which tells how a princess from Ayodhya traveled to Korea and married Korean King Suro in 48 CE, the statement said.

Participants light earthen oil lamps on the banks of the Sarayu river in an attempt to enter the Guinness World Records for the largest display of oil lamps on the eve of Diwali PAWAN KUMAR/REUTERS

Uttar Pradesh Chief Minister Yogi Adityanath attended the event that featured cultural performances from Laotian, Russian, Indian and Trinidadian artists.

The northern city of Ayodhya held celebrations on the eve of Diwali SANJAY KANOJIA/AFP/Getty Images