Under CCP 391.6, litigation is stayed in a case once a vexatious litigant motion is filed pursuant to CCP 391.1. Here, the defendant filed the motion while it already had pending several motions seeking sanctions for discovery abuse. The trial court decided those motions at the same hearing it granted the vexatious litigant motion. This decision holds that was error and reverses the discovery order. Once the vexatious litigant motion was filed, the trial court lost jurisdiction to rule on the discovery motions unless and until plaintiff posted the security bond the trial court ordered under CCP 391.7, which plaintiff did not do, leading to dismissal of his case.