The European Commission has cleared the way for the U.K.-based pharmaceutical giant GlaxoSmithKline to acquire the consumer health business of U.S.-based Pfizer, as long as it sells Pfizer’s pain management business.

The EU’s antitrust authority reached its decision after the U.K. and U.S. companies agreed in June to divest Pfizer’s ThermaCare pain therapy brand.