Complex sentence: Physicians were hired by city officials and burial details were carefully organized, but panic spread through the city and, out of the fear of contagion, people were hastily buried in overcrowded pits.
Split into simpler sentences: Physicians were hired by city officials and burial details were carefully organized. But panic spread through the city and, out of the fear of contagion, people were hastily buried in overcrowded pits.