A pun is a clever wordplay that is commonly used in satire or comedic narratives, which can have multiple meanings and interpretations, or similar-sounding words.
Puns are used to subtly represent other elements, usually according to the culture (politics, race, gender, or historical events), and adding depth and a sharp wit to a specific narrative.
A pun is a literary device. It refers to be a type of wordplay in which the words exhibit many meanings. A pun includes humor and adds multiple meaning to it. The ambiguous meanings add humor and hidden meanings. Puns are usually specific to a particular culture. It is one of the devices which helps the writer to add variation in the situations.