If you have read the news lately or watched a court drama, you might have heard about the concept of attorney-client privilege. Previous court cases have paved the way for determining what types of privilege are covered with your attorney communications. They set the precedent for the modern idea of privilege in the courtroom.
Thanks to attorney-client privilege, in most cases, your attorney cannot be called to testify against you in court regarding statements you could have made to this person. Your attorney cannot tell everybody the confidential information you have shared with them, and often the law has no right to ask for information or documentation regarding your statements to your attorney.