A law allowing adults over 16 to legally change their gender without a medical exam has received final approval from the Spanish parliament.
The result of a protracted discussion, it passed with 191 votes in favor and 60 against.
In theory, it could now take three to four months to change a document's gender.
A second law approved on Thursday grants women who experience excruciating period pain paid menstrual leave.
Before, changing one's gender on an ID card required a gender dysphoria diagnosis from a doctor and two years of hormonal treatment.
They can now declare their gender and then confirm it three months later. 12 to 13-year-olds will require a judge's approval, while 14 and 15-year-olds will require parental consent.
Transgender people are "just people," not sick people, said equality minister Irene Montero to lawmakers prior to the vote.
After the law was passed and a 20-month parliamentary debate came to an end, she was captured grinning outside of congress.
However, not everyone favored the law. Patricia Bilbao, one of the protesters, said: "We are here to support women's rights as they are completely erasing us with these misogynist laws. ".
One of nine nations on the continent that have implemented self-declaration systems is Denmark, which was the first nation in Europe to pass a law of this kind in 2014.
The use of hormone therapy and mastectomies is currently prohibited for those who are under the age of 18 in Sweden, which was the first country to legalize gender transition at all in 1972.
Westminster blocked the Scottish government's gender reform bill in January on the grounds that it might have a "serious adverse impact" on UK laws already in place.
As the first nation in Europe to grant women paid menstrual leave, Spain passed legislation on Thursday. Ms. Montero called it a legislature "of feminist conquests.". ".
According to the law, if a woman presents a doctor's note and requests sick leave, the state will pay for it.
The UGT trade union has opposed it because they fear that employers will favor hiring men.
Additionally, access to abortion has improved in public hospitals, and minors can now receive the procedure at the ages of 16 and 17 without parental consent.
Additionally, free distribution of menstrual and contraceptive products will be made available in all high schools.