Bubonic plague is primarily transmitted through the bites of infected fleas that reside on small mammals, such as rats. It can also be transmitted through direct contact with bodily fluids or tissues of infected animals or through inhalation of respiratory droplets from infected individuals.