It was not until 1875, at the start of the Guangxu emperor's reign, that the Taipei prefectural administration was established in place of Tamsui, and the prefectural yamen was moved north to Tamsui.
直到一八七五年光緒即位後，才廢淡水廳，改制台北府，將府城衙門北移到淡水。