OPINION OF THE COURT
Kassal, J.We have repeatedly held that the housing of homeless families at Emergency Assistance Units (EAUs), i.e., welfare offices, violates New York State Administrative Directive 83 ADM-47 requiring that emergency housing be "provided immediately” (see, Matter of Lamboy v Gross, 126 AD2d 265). The overnight housing of homeless families at EAUs is intolerable and clearly violates the prior orders of the IAS and this Court in McCain v Koch (117 AD2d 198, revd in part 70 NY2d 109, on remand 136 AD2d 473) and Matter of Lamboy v Gross (supra). For several years, the City had been in compliance with these orders, but, more recently, repeated violations have occurred. Indeed, the defendants admit that in the summer and fall of 1992, families had to wait an unacceptably long time, and, sometimes, days in EAUs before they could be placed in emergency housing and that such delays violate the Lamboy order. Justice Freedman visited two EAUs in April *2191992, and confirmed plaintiffs’ findings that the same grim conditions at EAUs recited in this Court’s 1987 Lamboy decision still exist. Accordingly, the class action brought by affected families for contempt was proper, and the extensive hearings held by the IAS Court established that the municipal defendants have failed to comply with the aforementioned orders.
Pursuant to Judiciary Law § 753, a court may punish for civil contempt where a lawful order of a court, clearly expressing an unequivocal mandate, was in effect. It must appear, with reasonable certainty, that the order has been disobeyed. Furthermore, the party to be held in contempt must have had knowledge of the court’s order, although it is not necessary that the order actually have been served upon the party. Finally, prejudice to the right of a party to the litigation must be demonstrated (Matter of McCormick v Axelrod, 59 NY2d 574, 583). Here, all of these requirements were established at the hearings, and it is no defense that the municipal defendants were attempting to comply or acting in good faith (see, Matter of Bonnie H., 145 AD2d 830, lv dismissed 74 NY2d 650). The City’s contention that compliance is impossible is belied by the fact that the City was able to do so in the recent past.
Furthermore, the imposition of nonpunitive sanctions for the civil contempt was proper (State of New York v Unique Ideas, 44 NY2d 345). By requiring the City to pay fines to compensate families whose rights were violated by the defendants’ contemptuous conduct, the IAS Court neither violated the Judiciary Law nor abused its discretion (Judiciary Law §§753, 773). However, we delete the sanction requiring the four individual defendants to spend a night in an EAU for the reason that the only purpose served by such a penalty is to punish these individuals (see, N A. Dev. Co. v Jones, 99 AD2d 238, 240). The implication is simply unrealistic that these public officials are unaware of conditions at EAUs and that confining them to an EAU for a night would force attention to the problem, thereby providing an incentive to comply. Although a sanction designed to coerce compliance with a court’s mandate is permissible (Matter of Department of Envtl. Protection v Department of Envtl. Conservation, 70 NY2d 233), and the IAS Court indicated that the sanction against the individual defendants was intended to "ensure prospective compliance”, practically speaking, we fail to see how an overnight stay in an EAU can serve this purpose. In addition, *220the sanction imposed against the individual defendants was unauthorized under the Judiciary Law since a court must impose a fine or imprisonment upon a contempt determination (Judiciary Law § 753 [A]; § 770; Couture v Garland, 105 AD2d 1158, 1159, appeal dismissed 64 NY2d 1040). Accordingly, we remand the matter to the IAS Court to impose an appropriate sanction against the individual defendants.
In addition, the municipal defendants all had adequate and proper notice, as well as an opportunity to present evidence at the hearings and, thus, their due process rights were clearly not violated.
Finally, it can hardly be disputed that all the parties involved in this contempt proceeding, including defendants, have a vital interest in finding an operative solution to the City’s homeless crisis. We especially note that at oral argument, defendants emphasized that they have a proposal in place to address the requirements of our Lamboy decision (supra). While recognizing that some delay in implementation is inevitable, our determination is without prejudice to the plaintiffs to seek additional appropriate sanctions should the present conditions remain unchanged.
Order, Supreme Court, New York County (Helen E. Freedman, J.), entered on or about November 13, 1992, which, inter alia, adjudged the City in civil contempt, affirmed, without costs. Order of the same court entered on or about December 8, 1992, which (1) directed the City to pay fines to homeless families who stayed overnight in an EAU before being given shelter, and (2) found four New York City officials in civil contempt and directed them to appear separately at an Emergency Assistance Unit on one given night until all eligible families applying for emergency shelter before 12:00 midnight at those locations have been placed, modified to vacate the sanction against the individual defendants and to remand to the IAS Court for the imposition of an appropriate sanction, and otherwise affirmed, without costs.