Complexation of clofazimine by macrocyclic cucurbit[7]uril reduced its cardiotoxicity without affecting the antimycobacterial efficacy.