Battery Box

When relocating the battery. Is a battery box required in the trunk, if so, does it need to be metal or plastic? Thanks Ron