The English Government, in the beginning of the Second World War built a battery in what is now Xgharja. The people working there started living round this battery and thus a small hamlet was formed, which eventually evolved into a small town. In December of 2005, 842 people lived in Xghajra. It is one of the smallest towns in Malta to have it's own Local Council. The town Xghajra lies between Wied Il-Ghajn (Marsaskala), Haz-Zabbar and Kalkara.