Belize, known as British Honduras during colonial times, was a British colony until it gained independence in 1981. Though Spain claimed the territory by treaty, the British established a settlement and repeatedly defended it against Spanish attacks.