Rankin County is a county in the U.S. state of Mississippi. As of the 2020 census, 157,031 people lived there, which makes it the fourth-most populous county in Mississippi. Its county seat is Brandon.