Before Taiwan's recovery, many Ryukyu people and Japanese confectionery shops moved into the Penghu Islands. At that time, Chen Gongyuan and his son were apprentices in a Japanese confectionery shop. They befriended many Ryukyu confectionery masters, who taught them how to make Ryukyu-style desserts, specifically the black sugar cake that has since become popular across Taiwan.