Fetching details from the dictionary...

derailment
digression; deviation
電車が脱線して運転が見合わせになった。
The train derailed and services were suspended.
話が脱線して本題から外れてしまった。
The conversation went off track and strayed from the main topic.
鉄道会社が脱線事故の原因を徹底的に調査している。
They are investigating the cause of the derailment.