A bedliner (1) used for protecting metal truck beds and utility trailers from chemicals, such as chlorine, transported therein which causes the metal in the bed to corrode and rust when the chemicals spill and come into direct contact with the metal, said bedliner having an upper protective lip (12) and accordion-like protective retention wall (17).