Silkworms eat mulberry leaves, which provide them with the necessary nutrients for their growth and development.