What causes the bubonic plague?

fleas cause the Bubonic Plague, in the middle ages, the fleas bit rats and jumped onto humans spreading it