A Taiwanese man was sentenced to 30 years in prison Wednesday for detonating a pipe bomb on a busy Taipei train that injured more than two dozen people last year.
The explosion injured 24 people when it tore through the train as it pulled into a station.
"The defendant detonated the explosive device with the goal of committing suicide, as well as taking his revenge on society by means of killing innocent people. His motive was malicious," a court statement said.
Lin, who has the right to appeal the ruling, was alsoinjured in the blast.
He told the court he had struggled to find a job after being diagnosed with cancer and had ended up living in his car. He said he had also become estranged from his family.
But Lin believed that "society should be responsible for him", the court statement said.
The last major attack on Taipei's public transit was when a college student killed four people in a stabbing spree in 2014 on the metro, shocking the island and prompting a security overhaul.