In contrast to the occasionally more liberal stance under the Yuan dynasty, the Hongwu Emperor at the start of the Ming dynasty had imposed all foreign trade to be channeled through the highly formalized tributary system, implying a prohibition of private foreign trade even though this could probably never be universally enforced.