The accused person and their solicitor write down exactly what they say has happened.
The police help other people who may have seen what happened to write down what they saw. These people are called witnesses.
The Crown Prosecution Service (CPS) get all of the police's information and decide if there is enough evidence to prove the person did the crime.