The 2016 Chicago mayoral election was the most expensive in U.S. history.

According to an analysis by the nonpartisan Cook Political Report, the city spent an estimated $1.2 billion, including millions of dollars in television ads.

That’s an average of nearly $600 per voter in the city, according to the report. 

That means that Chicago spent more than $1 billion on television ads in the final month of the election, which brought an estimated 9.7 million votes to the ballot.

Chicago spent nearly $6.2 million on mail-in ballots, which is about the same amount as the city had spent on mail in ballots during the 2012 election cycle.

And Chicago spent $6 million on its online ads.

Chicago’s mayoralty was one of the biggest spending races in U