Alexander Cockburn, the mordant left-wing journalist and author who though born in Scotland thrived in the political and cultural battlegrounds of the United States, died on Saturday in Bad Salzhausen, Germany, where he had been receiving medical treatment, his family said. He was 71.

The cause was cancer, said Jeffrey St. Clair, a friend and colleague.

Mr. St. Clair announced Mr. Cockburn’s death on CounterPunch, the Web site that the two men edited. Mr. Cockburn kept his illness a secret, Mr. St. Clair, added, and continued writing until the end of his life.

“His body was deteriorating, but his prose remained as sharp, lucid and deadly as ever,” Mr. St. Clair wrote on the site.

Mr. Cockburn at various times had regular columns in ideologically disparate publications like The Nation and The Wall Street Journal. He became known as an unapologetic leftist, condemning what he saw as the outrages of the right but also castigating the American liberal establishment when he thought it was being timid.