Matt Schudel / The Washington Post

As songwriting partners, Nick Ashford and his wife, Valerie Simpson, wrote chart-topping rhythm-and-blues hits for Ray Charles, Marvin Gaye and Diana Ross, and then went on to become singing stars themselves in the 1970s and 1980s as Ashford&Simpson.

Ashford, 70, died Aug. 22 in New York City of throat cancer, his publicist told the Associated Press.

He and his future wife began writing together in 1964 and found success early when a throwaway party tune, “Let’s Go Get Stoned,” (written with a third partner) rose to No. 1 on the R&B charts for Charles in 1966.

The couple then became staff writers for Motown and churned out a series of hits in the late 1960s for Gaye and his singing partner, Tammi Terrell, that included the rousing “Ain’t No Mountain High Enough,” “Your Precious Love” and “Ain’t Nothing Like the Real Thing.”

Early in their career, Ashford primarily wrote lyrics while Simpson composed the music at a piano.

“We still don’t have a formula,” Ashford told The Washington Post in 1977. “I might think of a line or two. Valerie might hear me singing and try to catch up on the piano. But then I might hear her playing and come up with an idea.”

The couple also wrote for Gladys Knight&the Pips, Smokey Robinson, Aretha Franklin, The Marvelettes, Teddy Pendergrass and Chaka Khan.

“They had magic, and that’s what creates those wonderful hits, that magic,” Verdine White of Earth, Wind and Fire told the Associated Press. “Without those songs, those artists wouldn’t have been able to go to the next level.”

Ross and the Supremes scored a hit with “Ain’t No Mountain” in 1968. Two years later, she recorded a solo version that became her first No. 1 hit.

Ashford and Simpson wrote and produced all but one of the songs on Ross’ debut solo album, “Diana Ross” (1970), including the enduring hit “Reach Out and Touch (Somebody’s Hand).”

“We had been friends a long time,” Ross said in 1980, “and I knew what kind of songwriters they were. ... Nick and Valerie have been my good-luck charm.”

Motown founder Berry Gordy objected when the songwriting duo wanted to branch out and pursue a performing career. As a result, they left Motown in 1973 and found considerable success as an R&B-disco crossover group well into the 1980s. Their 1984 hit “Solid (as a Rock)” reached No. 1 on the R&B charts and No. 12 on the Billboard pop chart.

During the 2008 presidential campaign, the Ashford&Simpson hit found a second life when a “Saturday Night Live” skit reconfigured it as “Solid as Barack.”

Nickolas Ashford was born in Fairfield, S.C., on May 4, 1941. (Many reference sources state that he was born one year later, but public records confirm the year of his birth as 1941.)

He grew up in Willow Run, Mich., and got his musical start in a Baptist church. He briefly attended Eastern Michigan University before moving to New York to pursue a career as a dancer.

He slept on park benches and had been homeless for several months when he met Simpson at a Harlem church.

They soon teamed up to write gospel tunes before turning to love songs.