The West African Kingdom of Hausa established a system of walls and fortifications around its cities to protect against attacks from neighboring kingdoms and raiders. The walls were made of mud and were several miles long, with gates that were guarded by soldiers. The walls were also used to control trade and to collect taxes on goods that entered and left the city. The Hausa Kingdom was known for its military strength and its ability to defend itself against outside threats.