In bacteria, genes conferring antibiotic resistance are mostly carried on conjugative plasmids, mobile genetic elements that spread horizontally between bacterial hosts. Bacteria carry defence systems that defend them against genetic parasites, but how effective these are against plasmid conjugation is poorly understood. Here, we study to what extent restriction-modification (RM) systems-by far the most prevalent bacterial defence systems-act as a barrier against plasmids. Using 10 different RM systems and 13 natural plasmids conferring antibiotic resistance in Escherichia coli, we uncovered variation in defence efficiency ranging from none to 105-fold protection. Further analysis revealed genetic features of plasmids that explain the observed variation in defence levels. First, the number of RM recognition sites present on the plasmids generally correlates with defence levels, with higher numbers of sites being associated with stronger defence. Second, some plasmids encode methylases that protect against restriction activity. Finally, we show that a high number of plasmids in our collection encode anti-restriction genes that provide protection against several types of RM systems. Overall, our results show that it is common for plasmids to encode anti-RM strategies, and that, as a consequence, RM systems form only a weak barrier for plasmid transfer by conjugation.