In the context of word processing, a margin is the space that surrounds the text on a document at the top, bottom and both sides. When creating a document in word processing software you can set margins to help the program know how much space to leave when printing on a sheet of paper.
In the example image, all of the space surrounding the passages are margins.