Sidr trees are among the important trees in Iraq, especially in the southern regions of the country, as in Basra Governorate. The Sidr crop contributes a good share of the economy in many regions. In addition, it is used in various fields such as medicine. Various pathogens affect the Sidr tree due to many diseases, which cause serious problems that weaken or stop the production of the plant, and may eventually cause the plant to die. Therefore, we find that direct work, whether at the individual level of farmers or institutions specialized in agricultural prevention, for the development of solutions to detect and diagnose diseases quickly, with high accuracy, and recommend treatment for Sidr diseases is necessary and inevitable. In this work, we build an ontology to represent information about Sidr tree diseases. The proposal of this ontology is to support agricultural practices and systems geared towards helping farmers in the early prediction of diseases from their morphological symptoms. The ontology was developed under Protégé 5.5.0 using the Web Ontology Language (OWL) format and defined Competency Questions, DL-Query, and SPARQL queries. It includes 217 classes, 13 object properties, 6 data properties, and 1762 axioms. Experiments conducted through a data set showed the effectiveness of ontology in diagnosing Sidr tree diseases using one or more observations of symptoms provided by farmers. As a contribution to this work, it presents the first ontology to recover knowledge about the diseases of the Sidr tree and the possibility of using this ontology in designing easy-to-use computerized systems (relying on semantic web technologies) that help the farmer in diagnosing diseases and suggesting appropriate treatment quickly, accurately and at a lower cost.