Proteus mirabilis, a frequent uropathogen, forms extensive biofilms on catheters that are infamously difficult to treat. To explore the mechanisms of biofilm formation by P. mirabilis, we performed in vivo transposon mutagenesis. A mutant with impaired biofilm formation was isolated. The mutant was found to have Tn5 inserted in the zapD gene, encoding an outer membrane protein of the putative type 1 secretion system ZapBCD. zapBCD and its upstream zapA gene, encoding a protease, constitute an operon under the control of CpxR, a two-component regulator. The cpxR mutant and zapA mutant strains also had a biofilm-forming defect. CpxR positively regulates the promoter activities of zapABCD, cpxP, and cpxR. An electrophoretic mobility shift assay revealed that CpxR binds zapA promoter DNA. The loss of zapD reduced CpxR-regulated gene expression of cpxR, zapA, cpxP, and mrpA, the mannose-resistant Proteus-like (MR/P) fimbrial major subunit gene. The restoration of biofilm formation in the zapD mutant with a CpxR-expressing plasmid reinforces the idea that CpxR-mediated gene expression contributes to zapD-involved biofilm formation. In trans expression of zapBCD from a zapBCD-expressing plasmid also reestablished the biofilm formation ability of the cpxR mutant to a certain level. The zapD and cpxR mutants had significantly lower protease activity, adhesion, and autoaggregation ability and production of exopolysaccharides and extracellular DNA (eDNA) than did the wild type. Finally, we identified copper as a signal for CpxR to increase biofilm formation. The loss of cpxR or zapD abolished the copper-mediated biofilm upshift. CpxR was required for copper-induced expression of zapA and cpxR. Taken together, these data highlight the important role of CpxR-regulated zapD in biofilm formation and the underlying mechanisms in P. mirabilis.