Two incumbent Republican state representatives in Indiana lost primary elections after national anti-gay groups targeted them for their votes against a state constitutional amendment banning same-sex marriage.

Kathy Heuer and Rebecca Kubacki were among eleven Republicans who voted against the marriage amendment in January. The amendment will next have to be placed on the statewide ballot, which won’t happen until 2016 at the earliest .

According to the National Organization for Marriage, NOM, the American Family Association of Indiana, Focus on the Family’s political arm Citizenlink, the Family Research Council and the FRC’s Indiana affiliate the Indiana Family Institute were all involved in the effort to unseat the pro-marriage lawmakers. NOM writes:

NOM, the Indiana Family Institute, the American Family Association of Indiana, Citizenlink, and Family Research Council Action had warned politicians before the marriage amendment vote in the legislature that if they did not give the people the chance to vote on marriage this year, there would be political repercussions. After the failure of the legislature to pass the question to the voters, the coalition worked together to choose its targets, particularly the ousting of Heuer and Kubacki while protecting marriage champions.

The Indianapolis Star reports that the Indiana Family Institute’s political arm “ran $12,000 worth of radio ads in the Fort Wayne area targeting Heuer, Kubacki, and a third incumbent, Casey Cox of Fort Wayne,” who won his primary contest. The FRC-affiliated group also reportedly sent out 10,000 mailers in support of the marriage amendment’s sponsor in his successful effort to fend off a primary challenger.

In February, NOM and Citizenlink started airing radio ads against at least one Republican state lawmaker who ultimately voted for the marriage amendment, but supported a change that would remove a ban on civil unions from the measure, thus pushing back the schedule for getting the ban on the ballot. The groups accused proponents of the change of bringing “San Francisco-style marriage” to Indiana.

In a statement, FRC president Tony Perkins touted his organization’s recent poll on how Republican voters view marriage equality and claimed that “elected officials can no longer avoid the reality that the redefinition of marriage leads to the loss of our most basic freedoms.”