Madison County is a county in the U.S. state of Alabama. As of the 2010 census, the population was 334,811, making it the third-most populous county in Alabama. The county seat is Huntsville. The county is named in honor of James Madison, fourth President of the United States of America.