The major challenge for membrane distillation (MD) is the membrane wetting resistance induced by pollutants in the feed solution. The proposed solution for this issue was to fabricate membranes with hydrophobic properties. Hydrophobic electrospun poly (vinylidene fluoride-co-hexafluoropropylene) (PVDF-HFP) nanofiber membranes were produced for brine treatment using the direct-contact membrane distillation (DCMD) technique. These nanofiber membranes were prepared from three different polymeric solution compositions to study the effect of solvent composition on the electrospinning process. Furthermore, the effect of the polymer concentration was investigated by preparing polymeric solutions with three different polymer percentages: 6, 8, and 10%. All of the nanofiber membranes obtained from electrospinning were post-treated at varying temperatures. The effects of thickness, porosity, pore size, and liquid entry pressure (LEP) were studied. The hydrophobicity was determined using contact angle measurements, which were investigated using optical contact angle goniometry. The crystallinity and thermal properties were studied using DSC and XRD, while the functional groups were studied using FTIR. The morphological study was performed with AMF and described the roughness of nanofiber membranes. Finally, all of the nanofiber membranes had enough of a hydrophobic nature to be used in DCMD. A PVDF membrane filter disc and all nanofiber membranes were applied in DCMD to treat brine water. The resulting water flux and permeate water quality were compared, and it was discovered that all of the produced nanofiber membranes showed good behavior with varying water flux, but the salt rejection was greater than 90%. A membrane prepared from DMF/acetone 5-5 with 10% PVDF-HFP provided the perfect performance, with an average water flux of 44 kg.m−2.h−1and salt rejection of 99.8%.