derail
To suddenly interrupt or spoil plans or progress.
To derail literally means to cause a train to leave its tracks. When a train derails, something goes wrong and the cars jump off the rails they're supposed to run on, which can be dangerous and brings everything to a sudden halt.
More commonly, we use derail to describe when plans or progress get knocked off course. When a surprise fire drill derails your class discussion, it interrupts what you were doing and makes it hard to get back on track. A student council meeting might get derailed by arguments about something unimportant, pulling everyone away from the real agenda.
The word captures that sense of sudden disruption: things were moving smoothly in one direction, then something interfered and now everything's stopped or headed the wrong way. You might say a friend's constant jokes derailed your study session, or that one poor test grade derailed your plan to ace every assignment this semester.
Derailment is the noun form, referring to either an actual train accident or any situation where plans fall apart. Notice that derailing suggests an outside force or distraction caused the problem, whether it's a phone notification that derails your homework focus or unexpected rain that derails your outdoor party plans.