Floods are among the natural hazards that have seen a rapid increase in frequency in recent decades. The damage caused by floods, including human and financial losses, poses a serious threat to human life. This study evaluates two machine learning (ML) techniques for flood susceptibility mapping (FSM) in the Gamasyab watershed in Iran. We utilized Random Forest (RF), Support Vector Machine (SVM), ensemble models, and a Geographic Information System (GIS) to predict FSM. The application of these models involved 10 effective factors in flooding, as well as 82 flood locations integrated into the GIS. The SVM and RF models were trained and tested, followed by the implementation of resampling techniques (RT) using bootstrap and subsampling methods in three repetitions. The results highlighted the importance of elevation, slope, and precipitation as primary factors influencing flood occurrence. Additionally, the ensemble model outperformed both the RF and SVM models, achieving an area under the curve (AUC) of 0.9, a correlation coefficient (COR) of 0.79, a true skill statistic (TSS) of 0.83, and a standard deviation (SD) of 0.71 in the test phase. The tested models were adapted to available input data to map the FSM across the study watershed. These findings underscore the potential of integrating an ensemble model with GIS as an effective tool for flood susceptibility mapping.