Allotment (AGs) and community gardens (CGs) are types of urban gardens that provide diverse ecosystem services (ESs) such as climate regulation, beautiful landscapes, biodiversity and food security. Despite this, there are no AGs or CGs in many developing countries such as Iran. One of the main reasons for the lack of development of CGs in developing countries is the lack of proper understanding by policy-makers and citizens regarding the economic value of the ESs provided and the lack of disclosure of the benefits of its construction in urban areas. The purpose of this study is to analyse the preferences of citizens, to examine the existence of a potential market, to estimate the willingness to pay (WTP) for the creation and operation of CG services and to investigate the factors affecting residents’ WTP in Dezful, Iran. For this purpose, a choice experiment, based on the stated preferences valuation approach, was applied through interviews with 170 respondents living in Dezful urban area. The data were collected during the autumn of 2022 and analysed using conditional logit model. The results indicated that the responding citizens are willing to pay 4.57 USD per month to create CG and operate its ESs in Dezful. Amongst the attributes and ESs of the community garden, citizens valued cultural services the most, followed by provisioning services. In addition, the variables “age”, “being native”, “education”, “household expenditure level” and “awareness and recognition of CG ecosystem services” had a significant effect on WTP. According to the results, it is suggested to follow the policy of creating CGs with the participation of citizens instead of focusing only on the creation of urban green space with a government budget and heavy financial burden. CGs, while providing diverse ESs, can generate sustainable incomes for municipalities and accelerate the movement toward sustainable urban development.