How was the Black Plague Spread?

The black plague was spread by the fleas that lived on the rats that were very common at that time. Because of lack of knowing this and fear, people locked themselves inside, with the fleas, making a very situation much worse.