Green corrosion inhibitors were enclosed in the polymeric micro- and nanocontainers.
Containers made of polyurea and (poly)epoxy resin were prepared by emulsion route.
Container morphology is determined by the polymer/load polarity difference.
Containers embedded in usual waterborne coatings improve their corrosion resistance.
Replacement of common pigments by containers enhances eco-friendliness of coatings.