During the Caste War in Yucatán, a devastating struggle that halved the population of the area between 1847 and 1855, thousands of refugees fled to the British settlement. The Legislative Assembly had given large landowners in the colony firm titles to their vast estates in 1855 but did not allow the Maya to own land. The Maya could only rent land or live on reservations. Nevertheless, most of the refugees were small farmers, who by 1857 were growing considerable quantities of sugar, rice, corn, and vegetables in the Northern District (now Corozal and Orange Walk districts). In 1857, the town of Corozal, then six years old, had 4,500 inhabitants, second in population only to Belize Town, which had 7,000 inhabitants. Some Maya who had fled the strife in the north, but had no wish to become British subjects, settled in the remote Yalbac Hills, just beyond the woodcutting frontier in the northwest. By 1862, about 1,000 Maya established themselves in 10 villages in this area, with the center in San Pedro. One group of Maya, led by Marcos Canul, attacked a mahogany camp on the Bravo River in 1866, demanding ransom for their prisoners and rent for their land. A detachment of British troops sent to San Pedro was defeated by the Maya later that year. Early in 1867, more than 300 British troops marched into the Yalbac Hills and destroyed the Mayan villages, provision stores, and granaries in an attempt to drive them out of the district. The Maya returned, however, and in April 1870, Canul and his men marched into Corozal and occupied the town.