Prepare the ground where the garden box will be placed. This includes loosening the earth with a rototiller and then raking it level with a metal garden rake. The anchors will be positioned in the box's four corners. However, the process differs slightly depending on if you use wooden anchors or rebar, so decide which method of anchoring to use prior to building the garden box.
Cut the four corner posts 6 inches taller than the garden box, if you are using the wooden anchoring method. Use a circular saw to cut the posts. Build your garden box according to your plans, extending the four wooden posts 6 inches past the box's bottom. If you are using rebar, drill pilot holes through the wood at each corner using a 1/2-inch extended spade bit.
Set the garden box into position. If you are using the wooden anchoring method, push down on the box's four corners so they mark the ground, then move the box aside. Use a shovel to dig a 6-inch hole at each mark's location. Place each of the four wooden posts into a hole and fill in the hole with dirt. If you are using rebar anchors, leave the box in position and move on to the next Step.
Use a hacksaw to cut four rebar pieces 12 inches longer than the garden box's base board's height. Place one piece through each pilot hole. Pound on the piece with a hammer until it is embedded 12 inches into the ground.