Selective breeding of carp made them into the domesticated koi in Japan, and goldfish in China. This breeding began over 2,000 years ago. The Chinese brought their goldfish indoors during the Song Dynasty. They kept them in large ceramic vessels. That we now do in glass fish tanks.