What is the Role of the Opposing Attorney in a Deposition?

After a lawsuit has been filed, most likely you will have a chance to go through what is called a deposition. This is where the opposing attorney is given a chance to ask you questions. What is the role of the opposing attorney in that deposition? The role of the opposing attorney is to ask questions that are relevant and necessary to obtain information to help him or her either verify your claim or establish defenses that he or she may have against your claim.