The purpose of using a serial comma, also known as the Oxford comma, is to avoid ambiguity in a sentence. It is used before the conjunction "and" or "or" in a list of three or more items. For example, consider the sentence "I had pizza, pasta and salad for dinner." Without the serial comma, it could be interpreted as having both pizza pasta and salad together, instead of having pizza, pasta, and salad separately.