Sed is a stream editor that performs text transformations on a line-by-line basis. It can be used to perform find-and-replace operations, deletions, insertions, and other basic text transformations. Key commands include s/find/replace/ to substitute text, d to delete lines, and p to print lines. Sed scripts contain a list of commands that are applied sequentially to each line of input.