He accidentally transmigrated to the future as a female mistaken as an artificial female (the females on that world can't shapeshift) and he married the general who was the younger brother of the emperor. That's all I remember unfortunately