Under certain special circumstances, money can be deposited with the court to safeguard during lawsuits under Code of Civil Procedure sections 572 and 573. The justification for such a rule is that, if the court doesn’t protect the money, the other party may spend it, rendering a plaintiff’s victory somewhat hollow.
However, there are several important limitations in place in order for parties to actually utilize section 572. Chief among them is that the money needs to be “the subject of the litigation.” And even if the money does fall into this category, the Court cannot receive the funds until it is proven that the money is being held wrongfully.