Alan Bergman, who teamed with his wife, Marilyn, to write lyrics for the Academy Award-winning songs “The Way We Were” and “The Windmills of Your Mind” and for some of televisions most memorable theme songs: The gospel-like themes for the comedy series “Maude” and “Good Times” and the breezy intro to “Alice,” died July 17 at his home in Los Angeles. He was 99.

The Bergmans were among the favored lyricists of stars like Frank Sinatra, Tony Bennett and especially Barbra Streisand who in 2011 released the album “What Matters Most: Barbra Streisand Sings the Lyrics of Alan and Marilyn Bergman.”

The Bergmans received a total of 16 Oscar nominations, and in 1983, 3 of the 5 nominated songs were their songs. They also earned 3 Emmy Awards and a Grammy.

By the time the couple married in 1958, they had already been writing together (”Premarital rhyming was going on,” Mr. Bergman quipped in a 2010 interview on “CBS News Sunday Morning.”) Mr. Bergman was often asked about the creative experience involved in working so closely with his wife. He told the CBS News interviewer, “One is the creator, and the other is the editor. And those roles change within seconds.” He re-told that anecdote to The New York Times, and added the following: “At the end of the song, we rarely know who wrote what.”