Puerto Rican pop singer Ricky Martin was given Spanish citizenship today, the country’s government said.

The star, who came out in 2009 reportedly wants to take advantage of Spain’s gay marriage laws.

Spokesman Jose Blanco told a news conference that ministers had agreed to grant him a “letter of naturalization”, issued in special circumstances, because of his “personal and professional links with Spain”.

Spanish newspaper El Pais reported that Martin sought citizenship in order to marry boyfriend Carlos Gonzalez Abella, with whom he is bringing up his twin three-year-old sons.

Spain passed legislation allowing same-sex marriages in 2005, only the third country to do so at the time, with 20,000 gay couples entering into marriage since.

Appearing on the Larry King show last year, he had said: “I would get married… There are many countries around the world where same-sex marriage is a right. Not in Puerto Rico, unfortunately. And not in many states in America.

“Yes, we could go to Spain and get married. We can go to Argentina and get married. But why do we have to go somewhere else? Why can’t I do it in my country where the laws are – you know, protecting me?”

He added: “I can go to Spain. I have many friends in Spain. And get married. And make it very beautiful and symbolic. But… I [can't] do it in the backyard of my house. I want to have that option. I don’t want to be a second class citizen anymore. I pay my taxes. Why can’t I have that right?”

Martin celebrated coming out by appearing nude in a video entitled My Skin Talks.