Everyone has their day in court. This means that even if the client is guilty, the criminal defense lawyer must do whatever is necessary so that person will not be convicted of the crime.
How does that work? If you are a public defender, the client will be appointed and you have to meet with them. Before this person is arraigned in court, you will have time to discuss what will be their plea which will then be presented to the judge. Afterwards, ample time will be given so you can conduct an investigation, review police reports and examine the evidence to prepare you for trial.
During the trial, both sides will be able to present witnesses. Some of these are experts and after the prosecution questions this person on the stand, you will have the chance to cross-examine them and vice versa.
Before the trial starts or even during, you can try to settle this matter out of court. You have the right to accept or turn it down but you must first discuss this with your client.
When all the witnesses have spoken and the evidence has been presented, the only thing you have to work on now is your closing argument. You should summarize everything that has...