Beni Ansar is a town located in the Nador Province of the Oriental region in Morocco. It is situated approximately 12 km north of the city of Nador and shares a northern border with the Spanish enclave of Melilla.
According to the 2014 census, the town has a population of 56,582 residents. The total area of Beni Ansar is recorded as 20 hectares.