 The boy would have the option of serving as a eunuch official or serving the palace women when he became ten years old.This law was put in place in 1838 during the Nguyễn Dynasty.The only males allowed inside the Forbidden City at Huế were the Emperor and his eunuchs.