Blocks the H2 histamine receptor to decrease stomach acid production