Pragmatics is a branch of linguistics, which is the study of language. Pragmatics focuses on conversational implicature, which is a process in which the speaker implies and a listener infers. Simply put, pragmatics studies language that is not directly spoken. Instead, the speaker hints at or suggests a meaning, and the listener assumes the correct intention.
In a sense, pragmatics is seen as an understanding between people to obey certain rules of interaction. In everyday language, the meanings of words and phrases are constantly implied and not explicitly stated. In certain situations, words can have a certain meaning. You might think that words always have a specifically defined meaning, but that is not always the case. Pragmatics studies how words can be interpreted in different ways based on the situation.