To the Editor:

On July 6 I chose to go to jail to defend my right as a journalist to protect a confidential source, the same right that enables lawyers to grant confidentiality to their clients, clergy to their parishioners, and physicians and psychotherapists to their patients. Though 49 states have extended this privilege to journalists as well, for without such protection a free press cannot exist, there is no comparable federal law. I chose to go to jail not only to honor my pledge of confidentiality, but also to dramatize the need for such a federal law.

After 85 days, more than twice as long as any other American journalist has ever spent in jail for this cause, I agreed to testify before the special prosecutor Patrick J. Fitzgerald's grand jury about my conversations with my source, I. Lewis Libby Jr. I did so only after my two conditions were met: first, that Mr. Libby voluntarily relieve me in writing and by phone of my promise to protect our conversations; and second, that the special prosecutor limit his questions only to those germane to the Valerie Plame Wilson case. Contrary to inaccurate reports, these two agreements could not have been reached before I went to jail. Without them, I would still be in jail, perhaps, my lawyers warned, charged with obstruction of justice, a felony. Though some colleagues disagreed with my decision to testify, for me to have stayed in jail after achieving my conditions would have seemed self-aggrandizing martyrdom or worse, a deliberate effort to obstruct the prosecutor's inquiry into serious crimes.

Partly because of such objections from some colleagues, I have decided, after 28 years and with mixed feelings, to leave The Times. I am honored to have been part of this extraordinary newspaper and proud of my accomplishments here -- a Pulitzer, a DuPont, an Emmy and other awards -- but sad to leave my professional home.

But mainly I have chosen to resign because over the last few months, I have become the news, something a New York Times reporter never wants to be.