FRESNO, Calif. — Like Scotch broom and dandelions, despair can be invasive. This is why, every Monday, Lee Lee, a Hmong refugee, puts on her sun hat and flip-flops, grabs the hoe handmade by her father and brother in Laos and heads to the Hmong Village Community Garden here, where she tends rows of purple lemon grass, bitter melon and medicinal herbs along with other Hmong women.

“It lightens the load,” said Ms. Lee, whose depression has led her to think about suicide. “It brings peace, so I do not forget who I am.”

The garden, on the scraggly outskirts of town, is one of seven in Fresno created for immigrants, refugees and residents of impoverished neighborhoods with mental health money from the state. At the Slavic Community Garden, Ukrainian refugees persecuted for their religious beliefs in the Soviet Union now grow black currants for jam, dill for pickles and soups, and medicinal calendula flowers from Ukrainian seeds.

The thinking of community leaders and health professionals is that gardens can help foster resiliency and a sense of purpose for refugees, especially older ones, who are often isolated by language and poverty and experiencing depression and post-traumatic stress. Immigrant families often struggle to meet insurance co-payments, and culturally attuned therapists are in short supply.