I we'll review some recent joint work with M. Kapranov where we define a cohomological Hall algebra associated with any smooth algebraic surface. I will also explain how to prove a PBW theorem for these algebras, using factorization algebra techniques.