In an action, inter alia, to enjoin the defendant from interfering with the plaintiffs continued use of an easement, the defendant appeals from an order of the Supreme Court, Queens County (Nelson, J.), dated January 26, 2006, which denied its motion pursuant to CPLR 3211 (a) (1) and (7) to dismiss the complaint.
Ordered that the order is affirmed, with costs.
The Supreme Court correctly denied that branch of the defendant’s motion which was to dismiss the complaint on the ground that a defense is founded upon documentary evidence (see CPLR 3211 [a] [1]). “ ‘To succeed on a motion to dismiss pursuant to CPLR 3211 (a) (1), the documentary evidence that forms the basis of the defense must be such that it resolves all factual issues as a matter of law, and conclusively disposes of the plaintiffs claim’ ” (M. Fund, Inc. v Carter, 31 AD3d 620 [2006], quoting Trade Source v Westchester Wood Works, 290 AD2d 437, 438 [2002]; see Leon v Martinez, 84 NY2d 83, 88 [1994]). The documentary evidence submitted by the defendant, namely the parties’ agreement dated June 18, 2003, failed to resolve all factual issues as a matter of law and to conclusively dispose of the plaintiffs claim. This agreement did not establish that the plaintiff consented to the installation of the subject railing.
Moreover, the Supreme Court properly denied that branch of the defendant’s motion which was to dismiss the complaint for failure to state a cause of action (see CPLR 3211 [a] [7]). In reviewing a motion pursuant to CPLR 3211 (a) (7) to dismiss the complaint for failure to state a cause of action, the facts as alleged in the complaint must be accepted as true, the plaintiff
The defendant’s remaining contentions are without merit. Adams, J.E, Rivera, Skelos and Lifson, JJ., concur.