Casino companies and their supporters spent nearly $14 million in their successful campaign to defeat a ballot question on repealing the state’s casino law.

Campaign records show more than half of that spending came in the days leading up to the Nov. 4 election.

Anti-casino activists spent roughly $650,000 on their efforts, with just $76,000 spent in the final days.

Support for GBH is provided by:

Voters rejected the casino repeal question by a 20 percentage point margin.

The casino fight was the most expensive of this year’s four ballot questions and bests a $13 million record set in 2006 for a failed ballot initiative to allow wine sales in groceries.

The second most expensive ballot question fight this year was the nearly $10.5 million spent on a proposal to expand the bottle deposit law.