Before the 16th century, western Africa consisted of many independent states and kingdoms. The people lived in villages and towns and farmed crops like millet, rice, and yams. They traded goods like salt, gold, and cloth between communities. Powerful states developed with kings, governments, and large towns connected by trade routes. The culture included diverse ethnic groups with their own languages and religious and social customs.