The leafminer is the main problem in the melon cultivation in Brazil. From remarkable resistant accessions we propose to elucidate the compound(s) responsible for this antibiose using LC-MS and to develop a specific carbon-dot nanoformulation to control this pest, preserving biodiversity.