Little is known about the Lombok before the seventeenth century. Before this time it was made up of numerous competing and feuding petty states each of which were presided over by a Sasak 'prince'. This disunity was taken advantage of by the neighbouring Balinese who took control of western Lombok in the early seventeenth century. The Makassarese meanwhile invaded eastern Lombok from their colonies in neighbouring Sumbawa. The Dutch had first visited Lombok in 1674 and the Dutch East India Company concluded its first treaty with the Sasak Princess of Lombok. The Balinese had managed to take over the whole island by 1750, but Balinese infighting resulted in the island being split into four feuding Balinese kingdoms. In 1838, the Mataram kingdom brought its rivals under control.
Relations between the Sasak and Balinese in western Lombok were largely harmonious and intermarriage was common. In the island's east, however, relations were less cordial and the Balinese maintained control from garrisoned forts. While Sasak village government remained in place, the village head became little more than a tax collector for the Balinese. Villagers became a kind of serf and Sasak aristocracy lost much of its power and land holdings.
During one of the many Sasak peasant rebellions against the Balinese, Sasak chiefs sent envoys to the Dutch in Bali and invited them to rule Lombok. In June 1894, the governor general of the Dutch East Indies, Van der Wijck, signed a treaty with Sasak rebels in eastern Lombok. He sent a large army to Lombok and the Balinese raja capitulated to Dutch demands.(see Dutch intervention in Lombok) The younger princes however overruled the raja and attacked and routed the Dutch. The Dutch counterattacked overrunning Mataram and the raja surrendered. The entire island was annexed to the Netherlands East Indies in 1895. The Dutch ruled over Lombok's 500,000 people with a force of no more than 250 by cultivating the support of the Balinese and