It retained its independence throughout the Scramble for Africa by European colonial powers during the late 19th century .
The country remained in the American sphere of influence .
It retained its independence throughout the Scramble for Africa by European colonial powers during the late 19th century , and the country remained in the American sphere of influence .