What is the official language of Nigeria and why?

Despite the huge number of languages and dialects spoken throughout Nigeria, approximately 510, English is the official language of the country. This is because it serves as a language common the majority of the population but also because of Nigeria's history as a British country