A general deformation theory of algebras which factorise into two subalgebr
as is studied. It is shown that the classification of deformations is relat
ed to the cohomology of a certain double complex reminiscent of the Gersten
haber-Schack complex of a bialgebra.