The invention relates to a composite material that comprises at least one magnesium component, whereby the magnesium component consists of pure magnesium or a magnesium-calcium alloy or a magnesium-calcium-X alloy, whereby X is another biodegradable element. The composite material also contains at least one organic anti-infective agent having a solubility in water at room temperature of less than 10 grams per liter.