An extension tube useful for macro photography improves the closest focusing distance of a standard lens.
The extension tube can transmit focus and exposure information between the lens and the camera body, so autofocus also works; however, using the extension tube reduces the aperture, which may affect autofocus performance.
When using the extension tube, the lens does not focus to infinity.