"&" is expanded to the whole text matched by the regular expression in the search part.
Example: You want to add "== " at the beginning and " ==" at the end of every line:
's/.*/== & ==/'
The "&" will contain whatever is matched by ".*" (this is the whole line) and will put it in the result string, the rest of the result string is literal.