Keretapi Tanah Melayu Berhad (KTMB) (Jawi: كريتاڤي تانه ملايو برحد) or Malayan Railways Limited is the main rail operator in Peninsular Malaysia. The railway system dates back to the British colonial era, when it was first built to transport tin.