The daily expression of genes and the changes in gene expression after silencing the heme oxygenase (ho) gene were examined in the retina of Drosophila using microarray and SybrGreen qPCR (quantitative polymerase chain reaction) methods. The HO decrease in the morning upregulated 83 genes and downregulated 57 genes. At night, 80 genes were upregulated and 22 were downregulated. The top 20 genes downregulated after ho silencing in the morning modulate phototransduction, immune responses, autophagy, phagocytosis, apoptosis, the carbon monoxide (CO) response, the oxidative stress/UV response, and translation. In turn, the genes that upregulated at night were involved in translation—the response to oxidative stress, DNA damage, and phototransduction. Among the top 20 genes downregulated at night were genes involved in phototransduction, immune responses, and autophagy. For some genes, a low level of HO had an opposite effect in the morning compared to those at night. Silencing ho also changed the expression of circadian clock genes, while the HO decrease during the night enhanced the expression of immune system genes. The results showed that the cyclic expression of HO is important for controlling several processes in the retina, including neuroprotection and those involved in the innate immune system.