In the 19th century, Ljubija developed into one of the most important locations for the area's economy due to its iron ore deposits. After World War II Ljubija became one of the largest iron mines in the world which employed more than 5,000 people at any one time. Until 1963 it was governed as a separate municipality, before it was merged with Prijedor.