They magnify the image and allow 'close ups' or Macro photography.
The amount of magnification depends on the length of the tube or tubes combined with the focal length of the lens.
I have a nice set on eBay at the moment with a link to an extension tube calculator, check out item no 282515088854