A criminal trial is anything but a pure search for the truth. When defense attorneys represent guilty clients - as most do, most of the time - their responsibility is to try, by all fair and ethical means, to prevent the truth about their client's guilt from emerging. Failure to do so is malpractice.
U.S. criminal defence attorney Alan Dershowitz in his book, Reasonable Doubt (1997)