Cut lengths of 2-inch by 12-inch lumber to the size of your garden boxes. For example, if you want a 4-foot by 8-foot garden box, cut two lengths of 4-foot lumber and two lengths of 8-foot lumber. Miter the ends of these planks to 45 degrees with the miter saw.
Cut 4-foot by 4-foot lumber into four 12-inch lengths for each vegetable garden box you are making. These will be the corner posts of the box frame.
Form the mitered planks of the 2-by-12 lumber into frames, with the mitered ends mating to form 90-degree corners. Glue the mitered joints and leave in corner clamps to dry for two hours.
Drill four pilot holes sized to fit 3-inch galvanized screws through each glued joint, then secure the frame together with the screws.
Place each of the 4-by-4 posts into the corners of the frame then drill two pilot holes from each side of the frame corner into the 4-by-4 post and secure together with 3-inch galvanized screws.
Position the frame in the garden where you want the vegetable garden to go. Position two stakes on either side of each of the 4-by-4 posts then drive them into the soil with the mallet until the tops of the stakes are flush with the top of the frame.
Drive two more stakes into the soil along the long side of the box, and one more on each short side of the box. Secure the stakes to the box with two galvanized screws through the stakes into the side of the box, or the posts, depending on the stake placement.
Spread 1 inch of gravel over the bottom of the box, then fill it with potting soil to complete the vegetable garden box. It is now ready for planting.