Co-trimoxazole could be an alternative antibiotic to treat device-related bone and joint infection (BJI) but there are few published data about its efficacy and safety in this complex scenario to treat infection. The objective was to compare the outcome of patients with device-related BJI treated with an antibiotic regimen including co-trimoxazole versus a regimen without co-trimoxazole. This multicentre case-control study included consecutive adult patients diagnosed with device-related BJI. Each patient receiving co-trimoxazole was included in the co-trimoxazole group and was matched with two control patients, with stratification on microbial aetiology and age. The primary outcome was composite and defined by death or treatment failure during the follow-up. In this study, 150 patients were included, 50 in the co-trimoxazole group and 100 in the control group. The rate of reaching the primary endpoint was 18% in the co-trimoxazole group (9/50 cases) versus 21% in the control group (21/100) (P = 0.66). Co-trimoxazole use was not associated with an unfavourable outcome in the multivariate analysis (adjusted OR 0.8, 95% CI 0.31-2.06, P = 0.64). Although no significant difference was observed in premature discontinuation of treatment due to an adverse event between both groups (14 versus 12%, P = 0.73), treatment-related adverse events were significantly more frequently reported in patients of the co-trimoxazole group than the control group [34% (17/50) versus 18% (18/100), P = 0.03]. Co-trimoxazole appears to be an effective alternative for the treatment of BJI, even when it occurs on a device, but the safety profile requires close monitoring of adverse effects.