Nowadays, there is a rise in the production of eco-friendly, value-added textiles from natural substances. Some plant extracts can simultaneously dye and impart functionalities to textile fibers. The main goal of this study was the development of anti-UV and antibacterial hemp fabrics through dyeing with aqueous extracts obtained from Diospyros mollis Griff. Fruits without using any hazardous chemicals. Response surface methodology (RSM) was used to optimize the dyeing process and evaluate parameter interactions. The optimal pH, dyeing concentration, dyeing temperature, and mordant concentration were 4, 200 %owf, 92°C, and 5.4 %owf, respectively. The dyed fabrics were evaluated for coloration properties (color strength and fastness properties) as well as functional properties (ultraviolet protection factor (UPF) and antibacterial activity).The resulting fabrics appeared black, and displayed satisfactory color strength along with satisfactory color fastness (ratings > 4). The dyed fabrics exhibited good antibacterial activity against both S.aureus and E.coli (bacterial colony reduction > 90%), however it was more pronounced against E.coli. The UPF of the dyed fabrics also achieved the maximum (40+) level, highlighting the excellent UV shielding property. Thus, Diospyros mollis Griff. fruit extract could be a new source of a natural black dye and functionalization agents for UV-protective and antimicrobial textile applications.