A pun is a play on words using homonyms or similar sounding words, usually as a joke, sometimes as an insult.
Examples of puns
That ringing sound on the phone is from Alexander Graham's bells.
Ann O'Domine isn't an Irish person, she's a calendar.
Microsoft should open their own Windows before releasing the products.