It is unknown when homosexuality was legalized, but homosexuality is legal in Andorra according to the Penal Code of 2005.