Spain has passed a transgender rights bill allowing anyone aged 16 or over to change gender on their ID card.
It was approved by 188 votes for and 150 against, and now moves to the Senate for final approval.
The change has been pursued by the left-wing Podemos party, part of a coalition government with the Socialist party of Prime Minister Pedro Sánchez.