Once you have run your gel, move it to an open UV box (be sure to wear proper UV protection - especially for your eyes!), remove it from any gel tray as plastic will block much of the UV and with a clean, sterile razor blade, slice the desired DNA fragment from the gel.
'Note':To protect the UV box, it is a good idea to place the gel on a glass plate if available. Unlike the plastic tray, this will not significantly reduce the UV, but will protect the UV box from being cut by the razor blade.
'Note': Try to get as little excess gel around the band as possible. To do so, it is often important to take the excised band, lay it down on the UV box and trim the top, bottom and sides with the razor blade. This is especially important during the DNA purification step, as many kits cannot handle more than a certain total volume of gel per reaction.