We prove that a group obtained as a quotient of the free product of finitely many cubulable groups by a finite set of relators satisfying the classical C'(1/6)–small cancellation condition is cubulable. This yields a new large class of relatively hyperbolic groups that can be cubulated, and constitutes the first instance of a cubulability theorem for relatively hyperbolic groups which does not require any geometric assumption on the peripheral subgroups besides their cubulability. We do this by constructing appropriate wallspace structures for such groups, by combining walls of the free factors with walls coming from the universal cover of an associated 2-complex of groups.