Why do ladybugs have spots?

A ladybug's spots are a warning to predators. This color combination—black and red or orange—is known as aposematic coloration. Ladybugs aren't the only insects that use aposematic coloration to discourage predators.