After a 14-hour debate beginning on Wednesday, Argentina's Senate passed a measure legalizing same-sex “marriage.”

According to the AICA news agency, the 4 a.m. roll call on Thursday resulted in a vote of 33-27 in support of the measure.

Passage of the bill came despite heavy public opposition, including a massive protest by more than 200,000 outside the Argentinean capitol building last week.