After the police officer completes investigations, they may arrest you if they trust there is sufficient evidence to link you to an offense. When you are arrested, the officer should read you your Miranda rights. One of these rights is the right to a lawyer.
An attorney is essential to safeguarding your rights before and after an arrest. After an arrest, your matter will be sent to a prosecutor, who will assess it. If there is sufficient evidence warranting a prosecution, the prosecutor may formally charge you. By contacting a lawyer early, you may prevent these charges from being filed. The lawyer may find mistakes in your case or negotiate for the best possible outcome, depending on the case facts.