There was a transient increase in blood IgG and IgM levels in cows with subclinical mastitis one day after the termination of melatonin treatment followed by a significant decrease three days after termination. This evidence concerns the gene CD40LG and mastitis.