Giardiasis, caused by Giardia lamblia, is a prevalent and problematic infection. Current treatments, such as metronidazole have some limitations. Flavonoids may possess antigiardia properties. As CP2 (giardipain-1) plays a critical role in the parasite’s pathogenicity, the present study aimed to discover if the flavonoids of marjoram can target CP2 and inhibit it. After modeling the CP2 spatial structure and obtaining the chemical structure of flavonoids, molecular docking was performed using PyRx. Subsequently, pharmacokinetics and the toxicity of flavonoids with the highest binding affinity for CP2 were investigated. Finally, molecular dynamics simulation was conducted on CP2 and the final candidate. Among marjoram flavonoids, isovitexin, cosmosiin, and apigenin 7-O-methylglucuronide exhibited the highest binding affinity for CP2. However, toxicity studies revealed that isovitexin and cosmosiin are mutagens. Therefore, only apigenin 7-O-methylglucuronide can be considered a potential drug for treating giardiasis. Nevertheless, further studies are needed to confirm this hypothesis.