<p style='text-indent:20px;'>In this paper, deterministic and stochastic reaction-diffusion vege-tation-water systems with time-varying delay are developed, respectively. For the deterministic system, we define a threshold <inline-formula><tex-math id="M1">\begin{document}$ R_* $\end{document}</tex-math></inline-formula> and discuss the threshold dynamics of the system. When <inline-formula><tex-math id="M2">\begin{document}$ R_*<1 $\end{document}</tex-math></inline-formula>, the vegetation-free equilibrium point of the system is locally asymptotically stable. For <inline-formula><tex-math id="M3">\begin{document}$ R_*>1 $\end{document}</tex-math></inline-formula>, the vegetation is persistent. Besides, by Latin Hypercube Sampling (LHS) and partial rank correlation coefficients (PRCCs), global sensitivity analysis is shown. For the stochastic system driven by Markov switching and Gaussian noise, with the help of stochastic comparison principle, several sufficient conditions are obtained to ensure the finite-time stability and finite time contractive stability. Numerical simulations are carried out to support the effectiveness of theoretical results.</p>