The next Emperor, Dục Đức, was in power for barely three days before being deposed due to his unbecoming conduct. The following Emperor Hiep Hoa signed the Treaty of Huế in 1883 after hearing French guns near the capital city. The harsh and derogatory terms of the treaty which subjected Vietnam to French control served to destroy any possible support Hiep Hoa had among the Vietnamese people and at court.