The kingsnake has copied the pattern and colour of a coral snakes skin. The coral snake is a venomous and feared snake, that is why, by having the same appearance, kingsnakes might be a little safer.
[tex]\boxed {\bf~This~is~an~example~of~Bate's~mimicry}[/tex]
Hope it helped,
Happy homework/ study/ exam!