A written deposition is a formal legal document that records the sworn testimony of a witness, prepared in writing prior to trial. This document serves as a crucial tool in the discovery process, allowing parties to gather information and assess the strengths and weaknesses of their cases based on the witness's responses. Written depositions can be used to impeach a witness at trial or support motions and arguments in court.