Linfen is a prefecture-level city in southern Shanxi province, People's Republic of China. It is situated along the banks of the Fen River. It was known as Pingyang (平阳) during the Spring and Autumn Period. It has an area of 20,275 square kilometers and a population of 4,172,000 as of the end of 2007.
According to legend, the site of present-day Linfen was the capital of Yao, a legendary ruler more than 4000 years ago. In the 1980s, Linfen was nicknamed "The Modern Fruit and Flower Town". However, because of the proliferation of coal-burning power plants, the city has become smoggy and dust-covered.