In an action, inter alia, to recover unpaid no-fault benefits, the defendant appeals from a judgment of the Supreme Court, Kings County (Schneier, J.), dated October 29, 2002, which, upon granting, in part, the plaintiffs motion for summary judgment, is in favor of the plaintiff and against it in the principal sum of $229,815.
Ordered that the judgment is reversed, on the law, with costs, the motion is denied, upon searching the record, summary judgment is awarded to the defendant, and the complaint is dismissed.
Although the defendant did not move for summary judgment dismissing the complaint on the ground that the plaintiff was precluded from maintaining this action, this Court has the authority pursuant to CPLR 3212 (b) to search the record and award summary judgment to a nonmoving party with respect to a cause of action or issue that was the subject of the motion before the Supreme Court (see Dunham v Hilco Constr. Co., 89 NY2d 425, 429-430 [1996]; Merritt Hill Vineyards v Windy Hgts. Vineyard, 61 NY2d 106, 110-111 [1984]). Under the circumstances of this case, as it is clear that the plaintiff is precluded from maintaining this action, we award summary judgment to the defendant and dismiss the complaint.
In light of our determination, we need not reach the defendant’s remaining contentions. H. Miller, J.P., Ritter, Rivera and Spolzino, JJ., concur.