(CNN) — At least 22 people have been killed and 171 others injured after a train derailed in Yilan County in northeastern Taiwan, according to an update from the country‚Äôs transport ministry.

The train was traveling between the cities of Shulin and Taitung when it derailed Sunday on a coastal line reportedly popular with tourists.

The train was carrying 366 passengers when the accident occurred just before 5 pm local time, the transport ministry said.