Perak (peraʔ) is a state of Malaysia on the west coast of the Malay Peninsula. Perak has land borders with the Malaysian states of Kedah to the north, Penang to the northwest, Kelantan and Pahang to the east, and Selangor to the south. Thailand's Yala and Narathiwat provinces both lie to the northeast. Perak's capital city, Ipoh, was known historically for its tin-mining activities until the price of the metal dropped, severely affecting the state's economy. The royal capital remains Kuala Kangsar, where the palace of the Sultan of Perak is located. As of 2018, the state's population was 2,500,000. Perak has diverse tropical rainforests and an equatorial climate. The state's mountain ranges belong to the Titiwangsa Mountains, which is part of the larger Tenasserim Hills system that connects Myanmar, Thailand and Malaysia. Perak's Mount Korbu is the highest point of the range.
The discovery of an ancient skeleton in Perak supplied missing information on the migration of Homo sapiens from mainland Asia through Southeast Asia to the Australian continent. Known as Perak Man, the skeleton is dated at around 10,000 years old. An early Hindu or Buddhist kingdom, followed by several other minor kingdoms, existed before the arrival of Islam. By 1528, a Muslim sultanate began to emerge in Perak, out of the remnants of the Malaccan Sultanate. Although able to resist Siamese occupation for more than two hundred years, the Sultanate was partly controlled by the Sumatra-based Aceh Sultanate. This was particularly the case after the Aceh lineage took over the royal succession. With the arrival of the Dutch East India Company (VOC), and the VOC's increasing conflicts with Aceh, Perak began to distance itself from Acehnese control. The presence of the English East India Company (EIC) in the nearby Straits Settlements of Penang provided additional protection for the state, with further Siamese attempts to conquer Perak thwarted by British expeditionary forces.
The Anglo-Dutch Treaty of 1824 was signed to prevent further conflict between the British and the Dutch.