It takes multiple images while changing the focus position, extracts only the parts that are in focus, and combines them to create a photo with a deep depth of field. It is effective for macro photography where the depth of field is shallow and the range of focus is narrow.
eBay