BRUSSELS — European Union regulators announced a ban Monday on the import and sale of cosmetics containing ingredients tested on animals and to pledge more efforts to push other parts of the world, like China, to accept alternatives.

The ban, which will take effect immediately, “gives an important signal on the value that Europe attaches to animal welfare,” Tonio Borg, the E.U. commissioner for health and consumer policy, said in a statement.

The European Union banned animal testing of finished cosmetic products in 2004. A second ban, on animal-tested ingredients, went into effect four years ago. But heavy lobbying by major cosmetics manufacturers resulted in an extension of the deadline for some tests for effects like allergies and cancer and for which there is still no substitute. Monday’s action eliminated those remaining exemptions.

Even before the new rule was officially announced, the cosmetics company L’Oréal, which is based in France, said it would respect the ban and “no longer sell in Europe any finished product with an ingredient that was tested on animals” after Monday.