With the gates opened for Zhao Kuangyin, he became emperor with no resistance. Before the chancellor Fan Zhi could say anything, one of Zhao Kuangyin's generals pointed a sword at him and said, "We are without masters. Today, we must have an emperor." After the officials looked at each other and knew it was hopeless to resist; they all bowed down. With the court under control, Zhao Kuangyin was officially proclaimed emperor. The new dynasty's name, Song, was inspired by the army Zhao Kuangyin commanded in Song Prefecture.