The 32-year-old Spain captain uploaded on his Instagram page a short video teaser of the song, which he is seen performing with Flamenco, a former gas canister distributor.
"I always keep my promises. This is what my friend Demarco Flamenco and I have been working on. Warming up for the World Cup," Ramos wrote alongside the video which has been seen nearly four million times.
The mid-tempo ballad called "Otra estrella en tu corazon", or "Another star in your heart" was made available on iTunes and other online platforms on Friday.
The lyrics include: "Come on, Spain, raise your voice; scream loudly, shout that goal. Thinking big we will achieve the best, fighting together, towards the star with honour. We have to try. May La Roja shine once more."
Demarco, whose real name is Marco Jesus Borrego, told Spanish public broadcaster RTVE he wrote the lyrics with Ramos.
"He worked on it from his end, I did it from mine," he said.
The 38-year-old, who like Ramos is from the southwestern region of Andalusia, released his first album last year.
Ramos also sang lead vocals for Spain's Euro 2016 song "La Roja Baila", or "La Roja dances".
Spain won its only World Cup in 2010. It won the European Championship in 1964, 2008 and 2012.
COMMENTS
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ