A number of different units of measurement were used in Bolivia before the 1900s. Older systems were mostly derived from Spain. In Bolivia, the International Metric system was legally optional since 1871, and has been compulsory since 1893, even though the metric system was recognised at the customs-houses and other units which were of Spanish origin were also used.