Magherafelt is a town and civil parish in County Londonderry, Northern Ireland. It had a population of 9,071 at the 2021 Census. It is the biggest town in the south of the county and is the social, economic and political hub of the area. It is part of Mid-Ulster District.