 The fort was built in the 1870s as the private residence of Ngah Ibrahim, a Malay statesman in Perak.After the murder of J.W.W.Birch, the first British Resident in Perak at Pasir Salak on 1 November 1875, the fort became a court for the trial of Birch's murder.