Liberal giant on federal bench who wrote gay marriage decision has died.

Photo: Eric Risberg, AP

Judge Stephen Reinhardt, a liberal stalwart on the Ninth U.S. Circuit Court of Appeals in San Francisco who wrote the ruling that ultimately legalized same-sex marriage in California, died Thursday. He was 87.

Court spokesman David Madden said Reinhardt died suddenly during a medical appointment in his hometown of Los Angeles.