That's How Mafia Works is a caption from advertisements for the mobile game Mafia City, in which a suited man comes onscreen and points to an image with the caption "That's how mafia works".
The image is commonly used as an ironic meme caption, in a similar way to other meme captions such as This Is So Sad, and is often used to emphasize when something is considered tough or edgy.