Dig a hole large enough to hold the drain box directly beneath the downspout on your home.
Place the drain box into the hole so the grate on its top is level with the ground and it is in position to catch the water that comes out of the downspout.
Dig a channel away from the drain box away from your home to lead the water away. The channel should run to the curb.
Attach a drainage pipe to the drain box and cap off the remaining holes on the drain box. The end of the drainage pipe should stick out near the curb or in your ditch.
Fill in the hole surrounding the drain box and over the drainage pipe with dirt. Cover the dirt with grass seed or sod to make your yard look like new.