Baghlia is a town and commune in the Baghlia District of Boumerdès Province, Algeria. According to the 1998 census it has a population of 15,854.