Senators in Argentina are preparing to vote on hotly-contested legislation that could make the country the first in Latin America to recognise gay marriage.
Thousands of people have been demonstrating both for and against the legislation which has already been approved by the lower house of Congress and has the support of the president.
However passage through the Senate is expected to be much tougher.
Roman Catholic church officials, who have branded the bill "the devil's project," led mass protests against it on Tuesday.
Earlier in the week, Catholic officials across Argentina, where more than 90 percent of the population are members of the church, read a message from Buenos Aires Archbishop Jorge Bergoglio urging the faithful to oppose the bill.
|Church groups have said the proposed law is a threat to traditional family life [AFP]
Outside Congress on Wednesday, gay rights supporters chanted abuse against the Catholic Church, equating it with "garbage... dictatorship," while anti-gay groups prayed and held up images of he Virgin Mary.
Police had to form a barrier between the two groups after some skirmishes broke out.
At the start of Wednesday's debate, ruling Justicialista Party Senator Miguel Angel Pichetto said 37 of the 72 lawmakers needed for quorum were present, with "between 33 and 35" in favour of the measure.
But he added, "let's see how (the vote) turns out in the end."
Cristina Kirchner, the Argentine president, has been pushing the gay marriage bill through Congress, even though it was originally sponsored by the opposition Socialist Party.
Kirchner has slammed the Catholic Church for leading what she called was "a holy war" against the measure.