Choose rot-resistant woods like cedar or redwood and treat them with a water-resistant sealant. Line the inside with a plastic liner, leaving room for drainage, to minimize soil contact. Elevate the planter with feet or blocks to avoid ground moisture and allow air circulation. Ensure the box has drainage holes to prevent water from accumulating. Regularly inspect for signs of rot and reapply waterproofing treatments as needed. Bringing the planter indoors or covering it during rainy or winter months can also reduce exposure to excess moisture.