Complex sentence: Community plague doctors were quite valuable and were given special privileges; for example, plague doctors were freely allowed to perform autopsies, which were otherwise generally forbidden in Medieval Europe, to research a cure for the plague.
Split into simpler sentences: Community plague doctors were quite valuable and were given special privileges. For example, plague doctors were freely allowed to perform autopsies, which were otherwise generally forbidden in Medieval Europe, to research a cure for the plague.