Belgium became the second country in the world to legally recognize same-sex marriages when a bill passed by the Belgian Federal Parliament took effect on 1 June 2003.[144] Originally, Belgium allowed the marriages of foreign same-sex couples only if their country of origin also allowed these unions, however legislation enacted in October 2004 permits any couple to marry if at least one of the spouses has lived in the country for a minimum of three months.