Cockroaches are generally nocturnal creatures, meaning they are most active at night and prefer dark environments. While they are not necessarily averse to light, they do prefer to hide in dark and secluded areas during the day. Excessive light may disturb them, but it is not a foolproof method for repelling or eliminating cockroaches.