In AD 751 during the mid-Tang dynasty, Huating County was established by Zhao Juzhen, the governor of Wu Commandery, at modern-day Songjiang, the first county-level administration within modern-day Shanghai.
唐朝中期的公元 751 年，吴郡太守赵居贞在今松江设立华亭县，这是今天上海境内的第一个县级行政机构。